Password Recovery

Hi All, this is my first time working with frameworks. I use to do pure php coding before i decided to try to use a framework in building my websites. Well my problem is in checking if the user exists in database use to change password.

Anyone can help me how to do this in Yii?

thanks

Welcome to the forum!

Is not very clear.

If in retgistration you have to check if exists, you can use CUniqueValidator, if you want to create a form for password recover you can also use it.

Just set in the rules:


array('user', 'unique')

Thanks zaccaria,

I’m working in password recovery, and I’m checking the username including secret questions and answer and send the details to his email. But i don’t know how to do that in Yii