Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Merge branch 'gwis-fix-crypt-retval-check'
Browse files Browse the repository at this point in the history
  • Loading branch information
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Password/Bcrypt.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public function create($password)
}
}
$hash = crypt($password, $prefix . $this->cost . '$' . $salt64);
if (strlen($hash) <= 13) {
if (strlen($hash) < 13) {
throw new Exception\RuntimeException('Error during the bcrypt generation');
}
return $hash;
Expand Down

0 comments on commit f63c096

Please sign in to comment.