diff --git a/class-two-factor-core.php b/class-two-factor-core.php index 6f8062ec..e319cf62 100644 --- a/class-two-factor-core.php +++ b/class-two-factor-core.php @@ -540,7 +540,7 @@ public static function backup_2fa() { $nonce = filter_input( INPUT_GET, 'wp-auth-nonce', FILTER_SANITIZE_STRING ); $provider = filter_input( INPUT_GET, 'provider', FILTER_SANITIZE_STRING ); - if ( ! $wp_auth_id || ! $wp_auth_nonce || ! $provider ) { + if ( ! $wp_auth_id || ! $nonce || ! $provider ) { return; } @@ -811,7 +811,7 @@ public static function login_form_validate_2fa() { $wp_auth_id = filter_input( INPUT_POST, 'wp-auth-id', FILTER_SANITIZE_NUMBER_INT ); $nonce = filter_input( INPUT_POST, 'wp-auth-nonce', FILTER_SANITIZE_STRING ); - if ( ! $wp_auth_id || ! $wp_auth_nonce ) { + if ( ! $wp_auth_id || ! $nonce ) { return; } diff --git a/providers/class-two-factor-fido-u2f.php b/providers/class-two-factor-fido-u2f.php index ff4fd29a..330451c2 100644 --- a/providers/class-two-factor-fido-u2f.php +++ b/providers/class-two-factor-fido-u2f.php @@ -116,7 +116,7 @@ public static function get_u2f_app_id() { * @since 0.1-dev */ public function get_label() { - return _x( 'FIDO Universal 2nd Factor (U2F)', 'Provider Label', 'two-factor' ); + return _x( 'FIDO U2F Security Keys', 'Provider Label', 'two-factor' ); } /** diff --git a/providers/class-two-factor-totp.php b/providers/class-two-factor-totp.php index 7cc0c147..11f71f6e 100644 --- a/providers/class-two-factor-totp.php +++ b/providers/class-two-factor-totp.php @@ -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 ) {
- +
@@ -454,6 +454,9 @@ public function is_available_for_user( $user ) { public function authentication_page( $user ) { require_once ABSPATH . '/wp-admin/includes/template.php'; ?> +
+ +
diff --git a/readme.md b/readme.md index 6fbeca92..fd83f1e6 100644 --- a/readme.md +++ b/readme.md @@ -4,14 +4,14 @@ ![Banner](assets/banner-1544x500.png) Enable Two-Factor Authentication using time-based one-time passwords (OTP, Google Authenticator), Universal 2nd Factor (FIDO U2F, YubiKey), email and backup verification codes. -**Contributors:** [georgestephanis](https://profiles.wordpress.org/georgestephanis), [valendesigns](https://profiles.wordpress.org/valendesigns), [stevenkword](https://profiles.wordpress.org/stevenkword), [extendwings](https://profiles.wordpress.org/extendwings), [sgrant](https://profiles.wordpress.org/sgrant), [aaroncampbell](https://profiles.wordpress.org/aaroncampbell), [johnbillion](https://profiles.wordpress.org/johnbillion), [stevegrunwell](https://profiles.wordpress.org/stevegrunwell), [netweb](https://profiles.wordpress.org/netweb), [kasparsd](https://profiles.wordpress.org/kasparsd), [alihusnainarshad](https://profiles.wordpress.org/alihusnainarshad), [passoniate](https://profiles.wordpress.org/passoniate) -**Tags:** [two factor](https://wordpress.org/plugins/tags/two-factor), [two step](https://wordpress.org/plugins/tags/two-step), [authentication](https://wordpress.org/plugins/tags/authentication), [login](https://wordpress.org/plugins/tags/login), [totp](https://wordpress.org/plugins/tags/totp), [fido u2f](https://wordpress.org/plugins/tags/fido-u2f), [u2f](https://wordpress.org/plugins/tags/u2f), [email](https://wordpress.org/plugins/tags/email), [backup codes](https://wordpress.org/plugins/tags/backup-codes), [2fa](https://wordpress.org/plugins/tags/2fa), [yubikey](https://wordpress.org/plugins/tags/yubikey) -**Requires at least:** 4.3 -**Tested up to:** 5.4 -**Stable tag:** trunk (master) -**Requires PHP:** 5.6 - -[![Build Status](https://travis-ci.org/WordPress/two-factor.svg?branch=master)](https://travis-ci.org/WordPress/two-factor) [![Coverage Status](https://coveralls.io/repos/WordPress/two-factor/badge.svg?branch=master)](https://coveralls.io/github/WordPress/two-factor) [![Built with Grunt](https://gruntjs.com/cdn/builtwith.svg)](http://gruntjs.com) +**Contributors:** [georgestephanis](https://profiles.wordpress.org/georgestephanis), [valendesigns](https://profiles.wordpress.org/valendesigns), [stevenkword](https://profiles.wordpress.org/stevenkword), [extendwings](https://profiles.wordpress.org/extendwings), [sgrant](https://profiles.wordpress.org/sgrant), [aaroncampbell](https://profiles.wordpress.org/aaroncampbell), [johnbillion](https://profiles.wordpress.org/johnbillion), [stevegrunwell](https://profiles.wordpress.org/stevegrunwell), [netweb](https://profiles.wordpress.org/netweb), [kasparsd](https://profiles.wordpress.org/kasparsd), [alihusnainarshad](https://profiles.wordpress.org/alihusnainarshad), [passoniate](https://profiles.wordpress.org/passoniate) +**Tags:** [two factor](https://wordpress.org/plugins/tags/two-factor), [two step](https://wordpress.org/plugins/tags/two-step), [authentication](https://wordpress.org/plugins/tags/authentication), [login](https://wordpress.org/plugins/tags/login), [totp](https://wordpress.org/plugins/tags/totp), [fido u2f](https://wordpress.org/plugins/tags/fido-u2f), [u2f](https://wordpress.org/plugins/tags/u2f), [email](https://wordpress.org/plugins/tags/email), [backup codes](https://wordpress.org/plugins/tags/backup-codes), [2fa](https://wordpress.org/plugins/tags/2fa), [yubikey](https://wordpress.org/plugins/tags/yubikey) +**Requires at least:** 4.3 +**Tested up to:** 5.5 +**Stable tag:** trunk (master) +**Requires PHP:** 5.6 + +[![Build Status](https://travis-ci.org/wordpress/two-factor.svg?branch=master)](https://travis-ci.org/wordpress/two-factor) [![Coverage Status](https://coveralls.io/repos/wordpress/two-factor/badge.svg?branch=master)](https://coveralls.io/github/wordpress/two-factor) [![Built with Grunt](https://gruntjs.com/cdn/builtwith.svg)](http://gruntjs.com) ## Description ## diff --git a/readme.txt b/readme.txt index b355343a..59aaee4a 100644 --- a/readme.txt +++ b/readme.txt @@ -2,7 +2,7 @@ Contributors: georgestephanis, valendesigns, stevenkword, extendwings, sgrant, aaroncampbell, johnbillion, stevegrunwell, netweb, kasparsd, alihusnainarshad, passoniate Tags: two factor, two step, authentication, login, totp, fido u2f, u2f, email, backup codes, 2fa, yubikey Requires at least: 4.3 -Tested up to: 5.4 +Tested up to: 5.5 Requires PHP: 5.6 Stable tag: trunk diff --git a/tests/providers/class-two-factor-fido-u2f.php b/tests/providers/class-two-factor-fido-u2f.php index 797296cb..833e2e83 100644 --- a/tests/providers/class-two-factor-fido-u2f.php +++ b/tests/providers/class-two-factor-fido-u2f.php @@ -50,7 +50,7 @@ public function setUp() { * Verify the label value. */ public function test_get_label() { - $this->assertContains( 'FIDO Universal 2nd Factor (U2F)', $this->provider->get_label() ); + $this->assertContains( 'FIDO U2F Security Keys', $this->provider->get_label() ); } /** diff --git a/tests/providers/class-two-factor-totp.php b/tests/providers/class-two-factor-totp.php index 75247c0c..be5e72c5 100644 --- a/tests/providers/class-two-factor-totp.php +++ b/tests/providers/class-two-factor-totp.php @@ -57,7 +57,7 @@ public function test_get_instance() { * @covers Two_Factor_Totp::get_label */ public function test_get_label() { - $this->assertContains( 'Google Authenticator', $this->provider->get_label() ); + $this->assertContains( 'Time Based One-Time Password (TOTP)', $this->provider->get_label() ); } /**