-
Notifications
You must be signed in to change notification settings - Fork 169
Label recommended methods to simplify the configuration #676
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
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.
Copilot wasn't able to review any files in this pull request.
Files not reviewed (2)
- class-two-factor-core.php: Language not supported
- user-edit.css: Language not supported
<?php echo esc_html( sprintf( __( 'Enable %s', 'two-factor' ), $object->get_label() ) ); ?> | ||
<strong><?php echo esc_html( sprintf( __( 'Enable %s', 'two-factor' ), $object->get_label() ) ); ?></strong> | ||
<?php if ( in_array( $provider_key, $recommended_provider_keys, true ) ) : ?> | ||
<abbr title="<?php esc_attr_e( 'This method is more secure and easy to use', 'two-factor' ); ?>" class="two-factor-method-recommended"><?php esc_html_e( 'Recommended', 'two-factor' ); ?></abbr> |
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.
Adding these flags as <attr>
elements that provide additional context inline on hover and for screen readers.
<p> | ||
<?php esc_html_e( 'Please scan the QR code or manually enter the key, then enter an authentication code from your app in order to complete setup.', 'two-factor' ); ?> | ||
<?php esc_html_e( 'Please scan the QR code or manually copy the shared secret key from below to your Authenticator app:', 'two-factor' ); ?> |
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 message is now split into two -- one here above about the secret code and another closer to the code input box for clarity.
That looks good to me 👍🏻 |
What?
Marks methods that are relatively secure and easy to setup as "Recommended".
Why?
Fixes #483.
How?
two_factor_recommended_providers
filter that allows adding/removing methods from being "Recommended".Testing Instructions
Screenshots or screencast
Changelog Entry
Added: mark TOTP and backup codes as recommended methods to simplify the decision making.