1
0
mirror of https://github.com/flarum/core.git synced 2025-07-30 21:20:24 +02:00

Password cannot be null

This commit is contained in:
Toby Zerner
2015-06-01 17:55:52 +09:30
parent 82377f2302
commit fb3038d128

View File

@@ -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) : '';
}
/**