zqbao 11 mesi fa
parent
commit
258d2b5822
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      controllers/sys_user.go

+ 1 - 1
controllers/sys_user.go

@@ -68,7 +68,7 @@ func (this *SysUserController) Add() {
 		}
 	}
 	if req.Email != "" {
-		if !utils.ValidateEmailFormatat(req.Phone) {
+		if !utils.ValidateEmailFormatat(req.Email) {
 			br.Msg = "邮箱格式有误, 请检查"
 			return
 		}