zqbao hai 10 meses
pai
achega
258d2b5822
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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
 		}