Hi i have three fields in yii change password form as old_password,new_password,confirm_password. I would like to validate old_password matched or not in yii method.
I would expect the answer for this . Thank you.
Page 1 of 1
How To Validate Old Password
#2
Posted 26 January 2013 - 02:59 PM
nirmalroka, on 26 January 2013 - 01:31 PM, said:
Hi i have three fields in yii change password form as old_password,new_password,confirm_password. I would like to validate old_password matched or not in yii method.
I would expect the answer for this . Thank you.
I would expect the answer for this . Thank you.
Basic steps to validate Old Password:
1. Perform DB query for retrieving the actual password(current active password).
If you store the password after hashing :
=> Get the old_password from the form and hash this old_password
2. Compare two password if they match or not
Share this topic:
Page 1 of 1

Help











