Browse Source

提交代码

tags/v1.22.7.1
ychao_1983 3 years ago
parent
commit
406614f0fc
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      routers/user/auth.go

+ 1
- 0
routers/user/auth.go View File

@@ -211,6 +211,7 @@ func SignInPhonePost(ctx *context.Context, form auth.PhoneNumberCodeForm) {

if !phoneService.IsVerifyCodeRight(strings.TrimSpace(form.PhoneNumber), strings.TrimSpace(form.VerifyCode)) {
ctx.RenderWithErr(ctx.Tr("phone.verify_code_fail"), tplSignInPhone, &form)
return
}

u, err := models.GetUserByPhoneNumber(strings.TrimSpace(form.PhoneNumber))


Loading…
Cancel
Save