1
0
Fork 0
mirror of https://github.com/dani-garcia/vaultwarden.git synced 2025-07-31 16:19:10 +00:00

Fix Email 2FA login on native app

The new native android app still seems to send PascalCase entries for
Email 2FA. Added aliasses for these keys.

Tested all other 2FA's (Except Duo, which might be fixable via #4637)
and they all work fine using the Native Android Beta v2024.7.0 version.

Fixes #4713
This commit is contained in:
BlackDex 2024-07-17 15:49:57 +02:00
commit b7ddfb433e
No known key found for this signature in database
GPG key ID: 58C80A2AA6C765E1

View file

@ -24,7 +24,10 @@ pub fn routes() -> Vec<Route> {
#[derive(Deserialize)]
#[serde(rename_all = "camelCase")]
struct SendEmailLoginData {
// DeviceIdentifier: String, // Currently not used
#[serde(alias = "Email")]
email: String,
#[serde(alias = "MasterPasswordHash")]
master_password_hash: String,
}