From d13da9916e9d2f3d69f7819333281437e04f56d2 Mon Sep 17 00:00:00 2001 From: Wainui Witika-Park Date: Mon, 20 Sep 2021 09:01:41 +0000 Subject: [PATCH] Revert "Bug 28772: Do not hash secrets twice" This reverts commit 9e087c7c8efefb84fedc650ef28959540a5c64dc. --- installer/data/mysql/atomicupdate/bug_28772_api_keys.pl | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/installer/data/mysql/atomicupdate/bug_28772_api_keys.pl b/installer/data/mysql/atomicupdate/bug_28772_api_keys.pl index 2baf5bf788..1e38409018 100755 --- a/installer/data/mysql/atomicupdate/bug_28772_api_keys.pl +++ b/installer/data/mysql/atomicupdate/bug_28772_api_keys.pl @@ -25,10 +25,8 @@ return { }); foreach my $api_key (@$results) { - unless ( $api_key->{secret} =~ m/^\$2a\$08\$/ ) { - my $digest = Koha::AuthUtils::hash_password( $api_key->{secret} ); - $sth->execute( $digest, $api_key->{client_id} ); - } + my $digest = Koha::AuthUtils::hash_password( $api_key->{secret} ); + $sth->execute( $digest, $api_key->{client_id} ); } }, } -- 2.39.5