mirror of
https://github.com/meineerde/redmine.git
synced 2025-10-17 17:01:01 +00: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:
parent
d9771fbe44
commit
f9ffcff997
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user