]> source.dussan.org Git - redmine.git/commitdiff
Use Setting.host_name instead of Setting.app_title as TOTP issuer to avoid name colli...
authorGo MAEDA <maeda@farend.jp>
Mon, 9 Nov 2020 06:37:43 +0000 (06:37 +0000)
committerGo MAEDA <maeda@farend.jp>
Mon, 9 Nov 2020 06:37:43 +0000 (06:37 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@20308 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/twofa/totp.rb

index 603661350058f6832dc873874c04f9e783551659..90b5da2809b35496bfeda9b387616c370e370339 100644 (file)
@@ -63,7 +63,7 @@ module Redmine
       private
 
       def totp
-        @totp ||= ROTP::TOTP.new(@user.twofa_totp_key, issuer: Setting.app_title)
+        @totp ||= ROTP::TOTP.new(@user.twofa_totp_key, issuer: Setting.host_name)
       end
     end
   end