-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Display the secret for 2FA - #14128 #14154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: ramantehlan <ramantehlan@gmail.com>
Signed-off-by: ramantehlan <ramantehlan@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, @ramantehlan. Thanks for your contribution.
I just reviewed your pull request.
@@ -6,5 +6,9 @@ | |||
<img src="{{ image }}" /> | |||
</p> | |||
<p> | |||
{% trans "Secret/key:" %} <b>{{ secret }}</b> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you replace the b
tag with the strong
tag?
@@ -97,6 +97,7 @@ public function setup() | |||
); | |||
return Template::get('login/twofactor/application_configure')->render([ | |||
'image' => $inlineUrl, | |||
'secret' => $_SESSION['2fa_application_key'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't it be better to use $this->_twofactor->config['settings']['secret']
here?
{% trans "Secret/key:" %} <b>{{ secret }}</b> | ||
</p> | ||
<p> | ||
<label>{% trans "Authentication code:" %} <input type="text" name="2fa_code" /></label> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line is duplicate, could you remove it?
Merged, thanks for your contribution! |
After this commit, users will be able to see secret/key for 2FA, in case they can't scan QR code. #14128