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();
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.