During password generation: {code...} during password verification: {code...} $ pass is obtained from the database, and $ password is entered by the user. After a period of time, verification is always FALSE. Are you sure you have not modified the password. Where is the problem? When the password is generated:
Password_hash ($ this-> input-> post ('pass'), PASSWORD_BCRYPT)
Password Verification:
Password_verify ($ password, $ pass );
$ Pass
Is obtained from the database,$ Password
Is input by the user.
After a period of time, verification is always FALSE. Are you sure you have not modified the password.
Where is the problem?
Reply content:
When the password is generated:
Password_hash ($ this-> input-> post ('pass'), PASSWORD_BCRYPT)
Password Verification:
Password_verify ($ password, $ pass );
$ Pass
Is obtained from the database,$ Password
Is input by the user.
After a period of time, verification is always FALSE. Are you sure you have not modified the password.
Where is the problem?
We recommend that you use the following password_hash ($ password, PASSWORD_DEFAULT) when generating a password hash );