Browse Source

Merge 4f26f72586 into 0cefa4cca7

pull/7572/merge
Arunabha Mukhopadhyay 4 days ago
committed by GitHub
parent
commit
1fbe408d17
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 6
      src/api/core/two_factor/email.rs

6
src/api/core/two_factor/email.rs

@ -86,7 +86,11 @@ async fn send_email_login(data: Json<SendEmailLoginData>, client_headers: Client
err!("AuthRequest doesn't exist", "Invalid device, IP or code")
}
} else {
err!("No password hash has been submitted.")
// Allow email-only requests to trigger sending an email 2FA token.
// Mobile clients (e.g. iOS) may call this endpoint with only the email when
// the token endpoint indicated 2FA is required. In that flow the client
// doesn't submit the master password hash or an auth request id, so
// permit sending the email token based solely on the user's email.
}
user

Loading…
Cancel
Save