Commit b8126544 authored by Micheal Mand's avatar Micheal Mand Committed by Nicolas Widart

Check for password change when updating user (#294)

parent e19d208c
...@@ -120,6 +120,8 @@ class SentinelUserRepository implements UserRepository ...@@ -120,6 +120,8 @@ class SentinelUserRepository implements UserRepository
*/ */
public function update($user, $data) public function update($user, $data)
{ {
$this->checkForNewPassword($data);
$user->fill($data); $user->fill($data);
event(new UserIsUpdating($user)); event(new UserIsUpdating($user));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment