1
0
mirror of https://github.com/flarum/core.git synced 2025-08-10 10:24:46 +02:00

Signup + modal refactoring

This commit is contained in:
Toby Zerner
2015-02-08 15:59:39 +10:30
parent 6c3debc79b
commit d45f2fd1ac
14 changed files with 193 additions and 69 deletions

View File

@@ -73,7 +73,7 @@ class User extends Entity implements UserInterface, RemindableInterface
public function setPasswordAttribute($password)
{
$this->attributes['password'] = Hash::make($password);
$this->attributes['password'] = $password ? Hash::make($password) : null;
$this->raise(new Events\PasswordWasChanged($this));
}