mirror of
https://github.com/Karaka-Management/oms-Media.git
synced 2026-01-11 17:08:40 +00:00
fix passowrd bug
This commit is contained in:
parent
ad687966ff
commit
07f4c6e7cf
|
|
@ -288,7 +288,7 @@ class Media implements \JsonSerializable
|
|||
*/
|
||||
public function setPassword(?string $password) : void
|
||||
{
|
||||
$temp = $password === null ? null : \password_hash($password, \PASSWORD_BCRYPT);
|
||||
$temp = empty($password) ? null : \password_hash($password, \PASSWORD_BCRYPT);
|
||||
|
||||
$this->password = $temp === false ? null : $temp;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user