Daniel García
3 months ago
No known key found for this signature in database
GPG Key ID: FC8A7D14C3CD543A
1 changed files with
1 additions and
1 deletions
-
src/api/core/two_factor/protected_actions.rs
|
|
|
@ -127,7 +127,7 @@ pub async fn validate_protected_action_otp( |
|
|
|
pa.data = pa_data.to_json(); |
|
|
|
|
|
|
|
// Delete the token after x attempts if it has been used too many times
|
|
|
|
if pa_data.attempts > CONFIG.email_attempts_limit() { |
|
|
|
if pa_data.attempts >= CONFIG.email_attempts_limit() { |
|
|
|
pa.delete(conn).await?; |
|
|
|
err!("Token has expired") |
|
|
|
} |
|
|
|
|