diff options
author | Go MAEDA <maeda@farend.jp> | 2020-11-09 06:37:43 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2020-11-09 06:37:43 +0000 |
commit | f9ffcff997ddbce0dab415fc09915a18bc713099 (patch) | |
tree | a7d4496784dbdda1dc39ac55ad50415acc6857d4 /lib/redmine/twofa | |
parent | d9771fbe44a96258aae35d16e586ff1af3d36017 (diff) | |
download | redmine-f9ffcff997ddbce0dab415fc09915a18bc713099.tar.gz redmine-f9ffcff997ddbce0dab415fc09915a18bc713099.zip |
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
Diffstat (limited to 'lib/redmine/twofa')
-rw-r--r-- | lib/redmine/twofa/totp.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/twofa/totp.rb b/lib/redmine/twofa/totp.rb index 603661350..90b5da280 100644 --- a/lib/redmine/twofa/totp.rb +++ b/lib/redmine/twofa/totp.rb @@ -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 |