mirror of
https://github.com/redmine/redmine.git
synced 2026-06-17 21:10:57 +02: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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user