not returning the password

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

http://www.yiiframework.com/doc/api/1.1/CPasswordHelper