]> source.dussan.org Git - redmine.git/commitdiff
otpauth uri should include a login id, not an email address (#1237, #34233).
authorGo MAEDA <maeda@farend.jp>
Mon, 9 Nov 2020 02:41:50 +0000 (02:41 +0000)
committerGo MAEDA <maeda@farend.jp>
Mon, 9 Nov 2020 02:41:50 +0000 (02:41 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@20307 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/twofa/totp.rb

index e304208a25ddf1e4bf83aa50305716208cee6542..603661350058f6832dc873874c04f9e783551659 100644 (file)
@@ -50,7 +50,7 @@ module Redmine
       end
 
       def provisioning_uri
-        totp.provisioning_uri(@user.mail)
+        totp.provisioning_uri(@user.login)
       end
 
       def init_pairing_view_variables