Skip to content

Commit

Permalink
Fix Email 2FA login on native app
Browse files Browse the repository at this point in the history
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 dani-garcia#4637)
and they all work fine using the Native Android Beta v2024.7.0 version.

Fixes dani-garcia#4713
  • Loading branch information
BlackDex committed Jul 17, 2024
1 parent 505b30e commit b7ddfb4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/api/core/two_factor/email.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}

Expand Down

0 comments on commit b7ddfb4

Please sign in to comment.