Two concerns of the registration module process: 1 verification code 2 registration information
The verification code is to send you the verification code through the email or phoneNum filled in during registration, and then verify accordingly.
When you enter the correct verification code, then use your registration information to check in the DB, determine whether you need to register, if you can register will generate a default account, password and so on.
Timing diagram:
1 Functional description
For user account registration, you can use your mobile phone number or email to register your account. After the user enters the mobile phone number or email address, click Get Verification Code to receive a 6-digit verification code, and then the user enters the verification code to register. The system background will generate system account, avatar, password and other information for the newly registered user by default.
2 Enter the data
When registering, the user needs to enter the data, mobile phone number and email address to choose one:
Field name |
Explanation |
type of data |
Data validation rules |
phone number |
phone |
String |
11-digit mobile phone number |
mailbox |
|
String |
Email validity check |
Captcha |
code |
String |
6 random numbers |
3 output data
Choose one of the data generated by the user after successful registration, mobile phone number and email:
Field name |
Explanation |
type of data |
Data validity check |
username |
Default account |
String |
8 -digit account number, unique identifier |
phone |
phone number |
String |
11 digits |
|
mailbox |
String |
Correct mailbox format |