Bug 40348: Remove warnings from api/v1/two_factor_auth.t

02:28:36 koha_1       | WARNING: The key derivation method "opensslv1" is deprecated. Using -pbkdf=>'pbkdf2' would be better.
02:28:36 koha_1       | Pass -nodeprecate=>1 to inhibit this message.
02:28:36 koha_1       |  at /kohadevbox/koha/Koha/Patron.pm line 3216.

We should deal with that on a separate bug report. For now we can remove
the warnings from the log/output.

Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 12e4e92e53)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
This commit is contained in:
Jonathan Druart 2025-07-11 14:33:02 +02:00 committed by Paul Derscheid
parent cfe55afa92
commit d0727bab0d
No known key found for this signature in database
GPG Key ID: C25F9FD44CED595B
2 changed files with 5 additions and 3 deletions

View File

@ -61,8 +61,9 @@ sub new {
);
}
return $class->SUPER::new(
-key => $encryption_key,
-cipher => 'Cipher::AES'
-key => $encryption_key,
-cipher => 'Cipher::AES',
-nodeprecate => 1,
);
}

View File

@ -17,7 +17,8 @@
use Modern::Perl;
use Test::More tests => 2;
use Test::More tests => 3;
use Test::NoWarnings;
use Test::Mojo;
use Test::MockModule;