hi friends…
public static function validatePassword($encryptedPassword, $password) {
return crypt($password, $encryptedPassword) === $encryptedPassword;
}
this is my code…its not returning the value…help me friends…
hi friends…
public static function validatePassword($encryptedPassword, $password) {
return crypt($password, $encryptedPassword) === $encryptedPassword;
}
this is my code…its not returning the value…help me friends…
This code how U wrote it will return boolean true/false, not actual password value
I would recommend you look into CPasswordHelper provided by Yii