@@ -, +, @@ --- t/db_dependent/selenium/authentication_2fa.t | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) --- a/t/db_dependent/selenium/authentication_2fa.t +++ a/t/db_dependent/selenium/authentication_2fa.t @@ -21,7 +21,6 @@ use Test::More tests => 2; use C4::Context; use Koha::AuthUtils; use Koha::Auth::TwoFactorAuth; -use Koha::Encryption; use t::lib::Mocks; use t::lib::Selenium; use t::lib::TestBuilder; @@ -81,7 +80,7 @@ SKIP: { $s->submit_form; is( $driver->find_element('//div[@class="two-factor-status"]')->get_text(), 'Status: Enabled', '2FA is enabled' ); $patron = $patron->get_from_storage; - is( Koha::Encryption->new->decrypt_hex($patron->secret), $secret32, 'encrypted secret is set in DB' ); + is( $patron->decoded_secret, $secret32, 'encrypted secret is set in DB' ); }; @@ -90,7 +89,7 @@ SKIP: { my $mainpage = $s->base_url . q|mainpage.pl|; - my $secret32 = Koha::Encryption->new->decrypt_hex($patron->secret); + my $secret32 = $patron->decoded_secret; { # ok first try $driver->get($mainpage . q|?logout.x=1|); $driver->get($s->base_url . q|circ/circulation.pl?borrowernumber=|.$patron->borrowernumber); --