diff --git a/src/api/core/two_factor/email.rs b/src/api/core/two_factor/email.rs index 44ba2e7f..d38bd873 100644 --- a/src/api/core/two_factor/email.rs +++ b/src/api/core/two_factor/email.rs @@ -86,7 +86,11 @@ async fn send_email_login(data: Json, 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