|
|
@@ -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})
|
|
|
}
|
|
|
}
|
|
|
|