mirror of
https://github.com/flarum/framework.git
synced 2024-12-11 21:43:38 +08:00
Password cannot be null
This commit is contained in:
parent
1b57eb3c9b
commit
306b79b22a
|
@ -174,7 +174,7 @@ class User extends Model
|
|||
*/
|
||||
public function setPasswordAttribute($value)
|
||||
{
|
||||
$this->attributes['password'] = $value ? static::$hasher->make($value) : null;
|
||||
$this->attributes['password'] = $value ? static::$hasher->make($value) : '';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue
Block a user