|
@@ -29,7 +29,7 @@ func (c *AccountController) Login_verification() {
|
|
|
err, user_r := Account.Read_User_verification(Admin_user, Admin_pass)
|
|
|
|
|
|
if err != nil {
|
|
|
- c.Data["json"] = lib.JSONS{Code: 202, Msg: "E!"}
|
|
|
+ c.Data["json"] = lib.JSONS{Code: 202, Msg: "登录失败-请检查账号密码"}
|
|
|
} else {
|
|
|
User_tokey := Account.Add_Tokey(user_r.T_uuid)
|
|
|
c.Ctx.SetCookie("User_tokey", User_tokey, time.Second*60*60)
|
|
@@ -53,7 +53,7 @@ func (c *AccountController) Login_Admin_verification() {
|
|
|
err, user_r := Account.Read_Admin_verification(Admin_user, Admin_pass)
|
|
|
|
|
|
if err != nil {
|
|
|
- c.Data["json"] = lib.JSONS{Code: 202, Msg: "E!"}
|
|
|
+ c.Data["json"] = lib.JSONS{Code: 202, Msg: "登录失败-请检查账号密码"}
|
|
|
} else {
|
|
|
User_tokey := Account.Add_Tokey(user_r.T_uuid)
|
|
|
c.Ctx.SetCookie("User_tokey", User_tokey, time.Second*60*60)
|