-
Notifications
You must be signed in to change notification settings - Fork 158
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
+19
−16
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
bb9a0ae
Match the name resolved from the request
kasparsd 3dd8b15
Bump the tested WP version
kasparsd 0434cac
Another instance of the same variable naming issue
kasparsd dbc433f
There are now a lot of apps and tools that do this
kasparsd 2dcc8f2
Explain what code we’re expecting here
kasparsd 65695a5
People associate U2F with physical keys so we make it friendlier this…
kasparsd b626a48
Describe why it is not possible to view the QR code again
kasparsd ad02052
Update the tests to match the new names
kasparsd File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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' ); | ||
} | ||
|
||
/** | ||
|
@@ -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' ); ?> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. |
||
</p> | ||
<p> | ||
<a class="button" href="<?php echo esc_url( self::get_token_delete_url_for_user( $user->ID ) ); ?>"><?php esc_html_e( 'Reset Key', 'two-factor' ); ?></a> | ||
|
@@ -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' ); ?> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Explain where to get the code from. |
||
</p> | ||
<p> | ||
<label for="authcode"><?php esc_html_e( 'Authentication Code:', 'two-factor' ); ?></label> | ||
<input type="tel" autocomplete="off" name="authcode" id="authcode" class="input" value="" size="20" pattern="[0-9]*" /> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
There are more ways to do TOTP these days so make it generic.