Joke Collection Website - Blessing messages - I need to get a function to retrieve the password by SMS verification code when ecmall forgets the password, and I need to verify that the SMS related code ~ ~ SMS plug-in is available.

I need to get a function to retrieve the password by SMS verification code when ecmall forgets the password, and I need to verify that the SMS related code ~ ~ SMS plug-in is available.

1. The user enters the mobile phone number.

2. The background accepts and verifies whether the format of the mobile phone number is correct.

3. Generate random verification code

4. Save this set of [mobile phone number-verification code] data in the database.

5. Call the SMS plugin to send SMS to the mobile phone number.

6. Prompt the user to send successfully | failed

Because the code you copied looks difficult, if you don't understand anything, just keep asking me. n(*≧▽≦*)n