Commit 53db5968 by chenxianqi

login auth

parent 2ebcd387
Showing with 0 additions and 1 deletions
......@@ -64,7 +64,6 @@ func (c *AuthController) Login() {
} else if admin.UserName != queryAdmin.UserName {
c.Data["json"] = utils.ResponseError(c.Ctx, "用户不存在!", nil)
} else {
queryAdmin.Password = ""
queryAdmin.Token = utils.GenerateToken(queryAdmin)
_, err := o.Update(&queryAdmin, "Token")
queryAdmin.Password = ""
......
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