added recovery process

This commit is contained in:
Antonio Ramirez
2016-12-06 16:15:15 +01:00
parent ea68cb3d84
commit 6f9cc5188e
4 changed files with 84 additions and 7 deletions

View File

@ -21,11 +21,12 @@ class ResetPasswordService implements ServiceInterface
public function run()
{
return (bool)$this->model->updateAttributes(
[
'password_hash' => $this->securityHelper->generatePasswordHash($this->password)
]
);
return $this->model && (bool)$this->model->updateAttributes(
[
'password_hash' => $this->securityHelper->generatePasswordHash($this->password)
]
);
}
}