Commit 2c768637 by chenxianqi

login update token

parent 6e3fd893
Showing with 1 additions and 1 deletions
......@@ -66,7 +66,7 @@ func (c *AuthController) Login() {
} else {
queryAdmin.Password = ""
queryAdmin.Token = utils.GenerateToken(queryAdmin)
_, err := o.Update(&queryAdmin, "Token")
_, err := o.Update(&queryAdmin)
if err != nil {
logs.Error(err)
c.Data["json"] = utils.ResponseError(c.Ctx, "登录失败,请稍后再试!", queryAdmin)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment