Skip to content

Commit 206e465

Browse files
committed
formatting
1 parent 939302c commit 206e465

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Illuminate/Hashing/AbstractHasher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function info($hashedValue)
2525
*/
2626
public function check($value, $hashedValue, array $options = [])
2727
{
28-
if (is_null($hashedValue)) {
28+
if (is_null($hashedValue) || strlen($hashedValue) === 0) {
2929
return false;
3030
}
3131

src/Illuminate/Hashing/Argon2IdHasher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function check($value, $hashedValue, array $options = [])
2222
throw new RuntimeException('This password does not use the Argon2id algorithm.');
2323
}
2424

25-
if (is_null($hashedValue)) {
25+
if (is_null($hashedValue) || strlen($hashedValue) === 0) {
2626
return false;
2727
}
2828

0 commit comments

Comments
 (0)