Brother Zhu, the password in your video is encrypted with SHA1 and you can't log in.
张兴富_飞鹰
张兴富_飞鹰 2018-07-18 11:45:20
0
2
1228

This is in your video, you can’t log in

$map []=['email','=',$data['email']];
$map [] =['password','=',sha1($data['password'])];
$resilt=UserModel::where($map)->find();

I I logged in after deleting sha1. Why?

$map []=['email','=',$data['email']];
$map []= ['password','=',$data['password']];
$resilt=UserModel::where($map)->find();

张兴富_飞鹰
张兴富_飞鹰

reply all(2)
You bad bad

It means there is no encryption in the registration method, or the encryption is wrong. Open the user table corresponding to the database and look at this data, and you will understand everything

无忌哥哥

Are the passwords stored in the database also sha1? If one is sha1 and the other is not during password verification, the verification will not pass.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!