feat: check user email and phone when signing up

Signed-off-by: Kininaru <shiftregister233@outlook.com>

phone prefix error

Signed-off-by: Kininaru <shiftregister233@outlook.com>

fix i18n

Signed-off-by: Kininaru <shiftregister233@outlook.com>

fix i18n error

Signed-off-by: Kininaru <shiftregister233@outlook.com>

removed useless file

Signed-off-by: Kininaru <shiftregister233@outlook.com>

move timeout to app.conf

Signed-off-by: Kininaru <shiftregister233@outlook.com>

i18n

Signed-off-by: Kininaru <shiftregister233@outlook.com>

made verification code reusable

Signed-off-by: Kininaru <shiftregister233@outlook.com>
This commit is contained in:
Kininaru
2021-05-18 20:11:03 +08:00
parent 9bc29e25ef
commit 66d953a6c1
14 changed files with 151 additions and 37 deletions

View File

@ -48,7 +48,18 @@
"Have account?": "Have account?",
"sign in now": "sign in now",
"Your account has been created!": "Your account has been created!",
"Please click the below button to sign in": "Please click the below button to sign in"
"Please click the below button to sign in": "Please click the below button to sign in",
"code sent": "code sent",
"send code": "send code",
"email code": "email code",
"phone code": "phone code",
"PhoneCode has not been sent yet!": "Phone code has not been sent yet!",
"EmailCode has not been sent yet!": "Email code has not been sent yet!",
"PhoneYou should verify your code in 10 min!": "You should verify your phone verification code in 10 min!",
"EmailYou should verify your code in 10 min!": "You should verify your email verification code in 10 min!",
"PhoneWrong code!": "Wrong phone verification code!",
"EmailWrong code!": "Wrong email verification code!",
"Missing parameter.": "Missing parameter."
},
"login":
{

View File

@ -48,7 +48,18 @@
"Have account?": "已有账号?",
"sign in now": "立即登录",
"Your account has been created!": "您的账号已创建!",
"Please click the below button to sign in": "请点击下方按钮登录"
"Please click the below button to sign in": "请点击下方按钮登录",
"code sent": "验证码已发送",
"send code": "发送验证码",
"email code": "邮箱验证码",
"phone code": "手机验证码",
"PhoneCode has not been sent yet!": "尚未发送验证码至手机",
"EmailCode has not been sent yet!": "尚未发送验证码至邮箱",
"PhoneYou should verify your code in 10 min!": "你应该在 10 分钟之内验证手机号",
"EmailYou should verify your code in 10 min!": "你应该在 10 分钟之内验证邮箱",
"PhoneWrong code!": "手机验证码错误",
"EmailWrong code!": "邮箱验证码错误",
"Missing parameter.": "缺少参数"
},
"login":
{