Skip to content
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

Fix backup authentication method variable resolution #381

Merged
merged 8 commits into from
Aug 26, 2020

Conversation

kasparsd
Copy link
Collaborator

Fixes a regression introduced in #340.

Props @joshbetz!

@kasparsd kasparsd self-assigned this Aug 26, 2020
@@ -71,7 +71,7 @@ public static function get_instance() {
* Returns the name of the provider.
*/
public function get_label() {
return _x( 'Time Based One-Time Password (Google Authenticator)', 'Provider Label', 'two-factor' );
return _x( 'Time Based One-Time Password (TOTP)', 'Provider Label', 'two-factor' );
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are more ways to do TOTP these days so make it generic.

@@ -142,7 +142,7 @@ public function user_two_factor_options( $user ) {
</p>
<?php else : ?>
<p class="success">
<?php esc_html_e( 'Secret key configured and registered.', 'two-factor' ); ?>
<?php esc_html_e( 'Secret key is configured and registered. It is not possible to view it again for security reasons.', 'two-factor' ); ?>
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This has been a frequent question in the support forums so we explain why the secret key is not shown again.

@@ -454,6 +454,9 @@ public function is_available_for_user( $user ) {
public function authentication_page( $user ) {
require_once ABSPATH . '/wp-admin/includes/template.php';
?>
<p>
<?php esc_html_e( 'Please enter the code generated by your authenticator app.', 'two-factor' ); ?>
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Explain where to get the code from.

@kasparsd kasparsd merged commit feb4708 into master Aug 26, 2020
@kasparsd kasparsd deleted the fix/phpcs-followup branch August 26, 2020 09:37
@jeffpaul jeffpaul added this to the 0.7.0 milestone Jan 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants