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

Check if ‘password’ key exists before checking if it is empty string or (#296)

null before unsetting
parent b8126544
...@@ -202,7 +202,7 @@ class SentinelUserRepository implements UserRepository ...@@ -202,7 +202,7 @@ class SentinelUserRepository implements UserRepository
*/ */
private function checkForNewPassword(array &$data) private function checkForNewPassword(array &$data)
{ {
if (! $data['password']) { if (array_key_exists('password', $data) && ($data['password'] === '' || $data['password'] === null)) {
unset($data['password']); unset($data['password']);
return; 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