Validation errors cannot be logged, you need to re-enter the authentication code, or send a new authentication code to the mailbox. In order to do this, I used how to send mail to the mailbox, as well as access to the IP login knowledge
This period of time modified our system login function, in order to be more secure, increased the ability to send mail verification. When the user log in to determine whether the landing IP is before the landing, if not, you need to send the verification code to the mailbox, and then enter the verification code received to login, if the verification code is correct and time does not exceed the specified time, you can log in, and write down the IP and time of this landing, and then with this IP, You don't have to verify it. If the time exceeds, the verification code fails and needs to be sent again. Validation errors cannot be logged, you need to re-enter the authentication code, or send a new authentication code to the mailbox. To achieve this, I used how to send mail to the mailbox, as well as the knowledge of landing IP. Let's sort it out so you can see for yourself later. Send mail: First need to download the Phpmail package, and then unzip, the extracted files copied to the project. Introduce files into your project. The code is as follows: Require ("phpmailer/class.phpmailer.php"); The path to the file depends on how the path is in your project.