Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Nov 17, 2022
1 parent 939302c commit 206e465
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Illuminate/Hashing/AbstractHasher.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function info($hashedValue)
*/
public function check($value, $hashedValue, array $options = [])
{
if (is_null($hashedValue)) {
if (is_null($hashedValue) || strlen($hashedValue) === 0) {
return false;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Hashing/Argon2IdHasher.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function check($value, $hashedValue, array $options = [])
throw new RuntimeException('This password does not use the Argon2id algorithm.');
}

if (is_null($hashedValue)) {
if (is_null($hashedValue) || strlen($hashedValue) === 0) {
return false;
}

Expand Down

0 comments on commit 206e465

Please sign in to comment.