diff --git a/framework/yii/helpers/BaseSecurity.php b/framework/yii/helpers/BaseSecurity.php index a49dd78..58fec95 100644 --- a/framework/yii/helpers/BaseSecurity.php +++ b/framework/yii/helpers/BaseSecurity.php @@ -302,7 +302,7 @@ class BaseSecurity $test = crypt($password, $hash); $n = strlen($test); - if (strlen($test) < 32 || $n !== strlen($hash)) { + if ($n < 32 || $n !== strlen($hash)) { return false; }