Kaynağa Gözat

fixed password

zwde 6 yıl önce
ebeveyn
işleme
324c8fe0e3
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      controllers/partial/SsoController.go

+ 2 - 2
controllers/partial/SsoController.go

@@ -30,7 +30,7 @@ func Sso_Login(c *entitys.CtrlContext) {
 		md5Pwd := sysutils.HashPassword(logininfo.Password, "")
 		//密码错误
 		if !strings.EqualFold(user.Password, md5Pwd) {
-			c.Ctx.JSON(200, sysmodel.SysReturn{400, "passowrd incorrect!", nil})
+			c.Ctx.JSON(200, sysmodel.SysReturn{400, "password incorrect!", nil})
 			return
 		}
 		token := &entitys.Token{}
@@ -62,7 +62,7 @@ func Sso_Login(c *entitys.CtrlContext) {
 		c.Ctx.JSON(200, sysmodel.SysReturn{200, "", data})
 	} else {
 		//fmt.Println(err.Error())
-		c.Ctx.JSON(200, sysmodel.SysReturn{400, "username or passowrd incorrect!", nil})
+		c.Ctx.JSON(200, sysmodel.SysReturn{400, "username or password incorrect!", nil})
 	}
 }