mirror of
https://github.com/redmine/redmine.git
synced 2025-12-16 05:20:28 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user