mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 17:58:41 +00:00
set specific pwd algo
This commit is contained in:
parent
930f7c8e86
commit
d62222507a
|
|
@ -327,7 +327,7 @@ class Account implements \JsonSerializable, ArrayableInterface
|
|||
*/
|
||||
public function generatePassword(string $password) : void
|
||||
{
|
||||
$temp = \password_hash($password, \PASSWORD_DEFAULT);
|
||||
$temp = \password_hash($password, \PASSWORD_BCRYPT);
|
||||
|
||||
if ($temp === false) {
|
||||
throw new \Exception('Internal password_hash error.'); // @codeCoverageIgnore
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user