1
0
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:
Toshi MARUYAMA 2020-12-17 13:10:48 +00:00
parent bfca89519f
commit 9c3ccff80a

View File

@ -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