mirror of
https://github.com/meineerde/redmine.git
synced 2026-02-06 09:03:25 +00:00
remove redundant 'return' from lib/redmine/twofa/totp.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20661 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
bfca89519f
commit
9c3ccff80a
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user