@@ -, +, @@ --- installer/data/mysql/atomicupdate/bug_28772_api_keys.pl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) --- a/installer/data/mysql/atomicupdate/bug_28772_api_keys.pl +++ a/installer/data/mysql/atomicupdate/bug_28772_api_keys.pl @@ -25,8 +25,10 @@ return { }); foreach my $api_key (@$results) { - my $digest = Koha::AuthUtils::hash_password( $api_key->{secret} ); - $sth->execute( $digest, $api_key->{client_id} ); + unless ( $api_key->{secret} =~ m/^\$2a\$08\$/ ) { + my $digest = Koha::AuthUtils::hash_password( $api_key->{secret} ); + $sth->execute( $digest, $api_key->{client_id} ); + } } }, } --