From 3c503426ce4a30d75529686d98b492f8e15bc4c4 Mon Sep 17 00:00:00 2001 From: Kaspars Dambis Date: Thu, 9 Jan 2025 13:06:27 +0200 Subject: [PATCH] Fix the character count --- providers/class-two-factor-backup-codes.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/providers/class-two-factor-backup-codes.php b/providers/class-two-factor-backup-codes.php index adab5cda..2a3345b4 100644 --- a/providers/class-two-factor-backup-codes.php +++ b/providers/class-two-factor-backup-codes.php @@ -348,13 +348,14 @@ public static function codes_remaining_for_user( $user ) { public function authentication_page( $user ) { require_once ABSPATH . '/wp-admin/includes/template.php'; - $code_placeholder = str_repeat( 'X', $this->get_backup_code_length( $user ) ); + $code_length = $this->get_backup_code_length( $user ); + $code_placeholder = str_repeat( 'X', $code_length ); ?>

- +