diff options
Diffstat (limited to 'lib/redmine')
-rw-r--r-- | lib/redmine/twofa/totp.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/redmine/twofa/totp.rb b/lib/redmine/twofa/totp.rb index 9e826fb99..f25b05faf 100644 --- a/lib/redmine/twofa/totp.rb +++ b/lib/redmine/twofa/totp.rb @@ -43,9 +43,9 @@ module Redmine verified_at = totp.verify(code.to_s, drift_behind: allowed_drift, after: last_verified_at) if verified_at @user.update!(twofa_totp_last_used_at: verified_at) - return true + true else - return false + false end end |