-
+
@@ -288,7 +299,7 @@ public function rest_generate_codes( $request ) {
$i18n = array(
/* translators: %s: count */
- 'count' => esc_html( sprintf( _n( '%s unused code remaining.', '%s unused codes remaining.', $count, 'two-factor' ), $count ) ),
+ 'count' => esc_html( sprintf( _n( '%s unused code remaining, each backup code can only be used once.', '%s unused codes remaining, each backup code can only be used once.', $count, 'two-factor' ), $count ) ),
);
if ( $request->get_param( 'enable_provider' ) && ! Two_Factor_Core::enable_provider_for_user( $user_id, 'Two_Factor_Backup_Codes' ) ) {
diff --git a/providers/class-two-factor-provider.php b/providers/class-two-factor-provider.php
index a2f9be06..d36ca2cb 100644
--- a/providers/class-two-factor-provider.php
+++ b/providers/class-two-factor-provider.php
@@ -32,6 +32,17 @@ protected function __construct() {
*/
abstract public function get_label();
+ /**
+ * Returns the singular name of the provider.
+ *
+ * @since 0.8.0
+ *
+ * @return string
+ */
+ public function get_singular_label() {
+ return $this->get_label();
+ }
+
/**
* Prints the name of the provider.
*
diff --git a/providers/class-two-factor-totp.php b/providers/class-two-factor-totp.php
index ac20ae9f..45565254 100644
--- a/providers/class-two-factor-totp.php
+++ b/providers/class-two-factor-totp.php
@@ -123,7 +123,7 @@ public function register_rest_routes() {
* Returns the name of the provider.
*/
public function get_label() {
- return _x( 'Time Based One-Time Password (TOTP)', 'Provider Label', 'two-factor' );
+ return _x( 'Authenticator app', 'Provider Label', 'two-factor' );
}
/**
@@ -354,16 +354,15 @@ public function user_two_factor_options( $user ) {
-
+
-
-
-
-
+