mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 23:11:12 +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
|
private
|
||||||
|
|
||||||
def totp
|
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
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user