Browse Source

fix:用户绑定信息

zqbao 6 months ago
parent
commit
b3975db06c
1 changed files with 2 additions and 0 deletions
  1. 2 0
      controllers/user.go

+ 2 - 0
controllers/user.go

@@ -66,6 +66,7 @@ func (this *UserAuthController) Login() {
 			br.ErrMsg = "请输入验证码"
 			return
 		}
+		req.Email = ""
 		phone := req.AreaCode + req.Phone
 		item, err := models.GetMsgCode(phone, req.SmsCode)
 		if err != nil {
@@ -94,6 +95,7 @@ func (this *UserAuthController) Login() {
 			br.ErrMsg = "请输入验证码"
 			return
 		}
+		req.Phone = ""
 		item, err := models.GetMsgCode(req.Email, req.SmsCode)
 		if err != nil {
 			if err.Error() == utils.ErrNoRow() {