From eea4595f3e896e368e65348c39526ed4173be9cd Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 3 Sep 2024 12:02:07 +0200 Subject: [PATCH] Bug 37732: Fix 'Invalid PIN code' styling for 2FA Signed-off-by: Jonathan Druart Signed-off-by: Katrin Fischer --- koha-tmpl/intranet-tmpl/prog/en/includes/auth-two-factor.inc | 2 +- t/db_dependent/selenium/authentication_2fa.t | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/auth-two-factor.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/auth-two-factor.inc index 3e6499ef10..f7fe863c60 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/auth-two-factor.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/auth-two-factor.inc @@ -9,7 +9,7 @@

Time based: Yes

- +
diff --git a/t/db_dependent/selenium/authentication_2fa.t b/t/db_dependent/selenium/authentication_2fa.t index f390e357d4..9ef2e22cb0 100755 --- a/t/db_dependent/selenium/authentication_2fa.t +++ b/t/db_dependent/selenium/authentication_2fa.t @@ -87,7 +87,7 @@ SKIP: { $driver->find_element('//*[@id="pin_code"]')->send_keys('wrong_code'); $driver->find_element('//*[@id="register-2FA"]')->click; $s->wait_for_ajax; - ok($driver->find_element('//div[@class="dialog error"][contains(text(), "Invalid PIN code")]')); + ok($driver->find_element('//div[@class="alert alert-error"][contains(text(), "Invalid PIN code")]')); is( $patron->get_from_storage->secret, undef, 'secret is not set in DB yet' ); my $secret32 = $driver->find_element('//*[@id="secret32"]')->get_value(); -- 2.39.5