mirror of
https://github.com/flarum/core.git
synced 2025-07-20 16:21:18 +02:00
Password cannot be null
This commit is contained in:
@@ -174,7 +174,7 @@ class User extends Model
|
|||||||
*/
|
*/
|
||||||
public function setPasswordAttribute($value)
|
public function setPasswordAttribute($value)
|
||||||
{
|
{
|
||||||
$this->attributes['password'] = $value ? static::$hasher->make($value) : null;
|
$this->attributes['password'] = $value ? static::$hasher->make($value) : '';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user