Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

Commit eeee47d

Browse files
committed
Check for null password to prevent exception in Laravel 5.7
- Closes #586
1 parent b85c74c commit eeee47d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Commands/SyncPassword.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ protected function passwordNeedsUpdate($password = null) : bool
8585
{
8686
$current = $this->currentModelPassword();
8787

88-
if ($this->canSync()) {
88+
if ($current !== null && $this->canSync()) {
8989
return ! Hash::check($password, $current);
9090
}
9191

0 commit comments

Comments
 (0)