From d9771fbe44a96258aae35d16e586ff1af3d36017 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Mon, 9 Nov 2020 02:41:50 +0000 Subject: [PATCH] otpauth uri should include a login id, not an email address (#1237, #34233). git-svn-id: http://svn.redmine.org/redmine/trunk@20307 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/twofa/totp.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/redmine/twofa/totp.rb b/lib/redmine/twofa/totp.rb index e304208a2..603661350 100644 --- a/lib/redmine/twofa/totp.rb +++ b/lib/redmine/twofa/totp.rb @@ -50,7 +50,7 @@ module Redmine end def provisioning_uri - totp.provisioning_uri(@user.mail) + totp.provisioning_uri(@user.login) end def init_pairing_view_variables -- 2.39.5