mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-09 05:38:39 +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
|
public function generatePassword(string $password) : void
|
||||||
{
|
{
|
||||||
$temp = \password_hash($password, \PASSWORD_DEFAULT);
|
$temp = \password_hash($password, \PASSWORD_BCRYPT);
|
||||||
|
|
||||||
if ($temp === false) {
|
if ($temp === false) {
|
||||||
throw new \Exception('Internal password_hash error.'); // @codeCoverageIgnore
|
throw new \Exception('Internal password_hash error.'); // @codeCoverageIgnore
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user