diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-12-17 13:10:48 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-12-17 13:10:48 +0000 |
commit | 9c3ccff80abe82892ad6f511d5df63db5c9c9967 (patch) | |
tree | d1fcf18affd0d74b4041ceecdce59285755b01db /lib/redmine/twofa | |
parent | bfca89519f375bd1d9621ef49d5ef416e200ca69 (diff) | |
download | redmine-9c3ccff80abe82892ad6f511d5df63db5c9c9967.tar.gz redmine-9c3ccff80abe82892ad6f511d5df63db5c9c9967.zip |
remove redundant 'return' from lib/redmine/twofa/totp.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20661 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/twofa')
-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 |