From b7ddfb433e3fac4380e50b9ba4869b947ee722fb Mon Sep 17 00:00:00 2001 From: BlackDex Date: Wed, 17 Jul 2024 15:49:57 +0200 Subject: [PATCH] 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 --- src/api/core/two_factor/email.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/api/core/two_factor/email.rs b/src/api/core/two_factor/email.rs index a4a69240..aea238e5 100644 --- a/src/api/core/two_factor/email.rs +++ b/src/api/core/two_factor/email.rs @@ -24,7 +24,10 @@ pub fn routes() -> Vec { #[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, }