X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=Koha%2FPseudonymizedTransaction.pm;h=70049a48c92b72a2b61dc5b9947f8a3a3a514250;hb=ebeb7e61614d8cf348a83ae187d23281f7521129;hp=4af91169ad3ff9aca3592a34cc3d40b04b990e2d;hpb=7175627cb6765343abf0dfc111d63c5b1e93bfc6;p=koha-ffzg.git diff --git a/Koha/PseudonymizedTransaction.pm b/Koha/PseudonymizedTransaction.pm index 4af91169ad..70049a48c9 100644 --- a/Koha/PseudonymizedTransaction.pm +++ b/Koha/PseudonymizedTransaction.pm @@ -16,8 +16,7 @@ package Koha::PseudonymizedTransaction; use Modern::Perl; -use Carp; -use Crypt::Eksblowfish::Bcrypt qw(bcrypt en_base64); +use Crypt::Eksblowfish::Bcrypt qw( bcrypt ); use Koha::Database; use Koha::Exceptions::Config; @@ -103,18 +102,18 @@ sub new_from_statistic { =head3 get_hash Generates a hashed value for $s (e.g. borrowernumber) with Bcrypt. - Needs config entry 'key' in koha-conf. + Needs config entry 'bcrypt_settings' in koha-conf. =cut sub get_hash { my ( $class, $s ) = @_; - my $key = C4::Context->config('key'); + my $bcrypt_settings = C4::Context->config('bcrypt_settings'); Koha::Exceptions::Config::MissingEntry->throw( - "Missing 'key' entry in config file") unless $key; + "Missing 'bcrypt_settings' entry in config file") unless $bcrypt_settings; - return bcrypt($s, $key); + return bcrypt($s, $bcrypt_settings); } =head2 Internal methods