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

Fix errors when data doesn’t contain a password field (#298)

Signed-off-by: 's avatarMicheal Mand <micheal@kmdwebdesigns.com>
parent d08fe1de
......@@ -202,7 +202,11 @@ class SentinelUserRepository implements UserRepository
*/
private function checkForNewPassword(array &$data)
{
if (array_key_exists('password', $data) && ($data['password'] === '' || $data['password'] === null)) {
if (array_key_exists('password', $data) === false) {
return;
}
if ($data['password'] === '' || $data['password'] === null) {
unset($data['password']);
return;
......
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