Thinkphp user registration uses email verification function!
Friends, are you usually troubled by the email verification function when registering as a user? Below, Simeng PHP brings you this case!
First, the structure of the data table is:
The idea is that when a user registers, we use a type field for verification. When the user logs in, we use this field for verification. If it is 1, the verification is successful and the user can log in. Otherwise, the user cannot log in. Please paste our code below. :
(1) The front-end code is:
The effect is:
(2) The added code for background verification is:
(3) Picture of mailbox effect
(4)Backend verification code
(5) Database code example
(6) Verification successful
thinkphp.rar ( 1.06 MB Download: 38 times )