Skip to content

Commit

Permalink
No longer require password field for onUpdate handler (#420)
Browse files Browse the repository at this point in the history
Fixes #421.
  • Loading branch information
aurelien-roy authored and Ben Thomson committed Jan 10, 2020
1 parent 32103e1 commit ca1a394
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/Account.php
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ public function onUpdate()
/*
* Password has changed, reauthenticate the user
*/
if (strlen($data['password'])) {
if (array_key_exists('password', $data) && strlen($data['password'])) {
Auth::login($user->reload(), true);
}

Expand Down

0 comments on commit ca1a394

Please sign in to comment.