@@ -, +, @@ [STABLE] --- installer/data/mysql/atomicupdate/bug_28772_api_keys.perl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) --- a/installer/data/mysql/atomicupdate/bug_28772_api_keys.perl +++ a/installer/data/mysql/atomicupdate/bug_28772_api_keys.perl @@ -19,8 +19,10 @@ if( CheckVersion( $DBversion ) ) { }); 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} ); + } } NewVersion( $DBversion, 28772, "Store hashed API key secrets" ); --