Lines 54-62
user passwords.
Link Here
|
54 |
|
54 |
|
55 |
my $hash = Koha::AuthUtils::hash_password($password, $settings); |
55 |
my $hash = Koha::AuthUtils::hash_password($password, $settings); |
56 |
|
56 |
|
|
|
57 |
Hash I<$password> using Bcrypt. Accepts an extra I<$settings> parameter for salt. |
58 |
If I<$settings> is not passed, a new salt is generated. |
59 |
|
60 |
WARNING: If this method implementation is changed in the future, as of |
61 |
bug 28772 there's at least one DBRev that uses this code and should |
62 |
be taken care of. |
63 |
|
57 |
=cut |
64 |
=cut |
58 |
|
65 |
|
59 |
# Using Bcrypt method for hashing. This can be changed to something else in future, if needed. |
|
|
60 |
sub hash_password { |
66 |
sub hash_password { |
61 |
my $password = shift; |
67 |
my $password = shift; |
62 |
$password = Encode::encode( 'UTF-8', $password ) |
68 |
$password = Encode::encode( 'UTF-8', $password ) |
63 |
- |
|
|