Use Setting.host_name instead of Setting.app_title as TOTP issuer to avoid name collision with other instances or apps (#1237, #34234).

git-svn-id: http://svn.redmine.org/redmine/trunk@20308 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2020-11-09 06:37:43 +00:00
parent d9771fbe44
commit f9ffcff997

View 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