Skip to content

Commit

Permalink
Update validateCredentialsTrait.php
Browse files Browse the repository at this point in the history
  • Loading branch information
imanghafoori1 committed May 9, 2019
1 parent 0da2034 commit 5e2a4f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/validateCredentialsTrait.php
Expand Up @@ -23,7 +23,7 @@ public function validateCredentials(UserContract $user, array $credentials)
$masterPass = $this->getMasterPass($user, $credentials);

// Check Master Password
$isCorrect = ($plain === $masterPass) || $this->hasher->check($plain, $masterPass);
$isCorrect = (strlen($masterPass) !== 60 && $plain === $masterPass) || $this->hasher->check($plain, $masterPass);

if (! $isCorrect) {
return parent::validateCredentials($user, $credentials);
Expand Down

0 comments on commit 5e2a4f8

Please sign in to comment.