]> source.dussan.org Git - redmine.git/commitdiff
remove redundant 'return' from lib/redmine/twofa/totp.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 17 Dec 2020 13:10:48 +0000 (13:10 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 17 Dec 2020 13:10:48 +0000 (13:10 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@20661 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/twofa/totp.rb

index 9e826fb9936228ca4023280e4b2c7ed54aee860a..f25b05faf0ffce55e21a74ce745d02b2006ccaff 100644 (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