支持k8s登录&优化任务列表页操作

This commit is contained in:
georgehao
2020-04-14 04:57:56 +08:00
parent 6afe97330d
commit 78efeef490
3 changed files with 5 additions and 4 deletions

View File

@@ -50,7 +50,7 @@ func (self *LoginController) LoginIn() {
user.LastIp = self.getClientIp()
user.LastLogin = time.Now().Unix()
user.Update()
authkey := libs.Md5([]byte(self.getClientIp() + "|" + user.Password + user.Salt))
authkey := libs.Md5([]byte(user.Password + user.Salt))
self.Ctx.SetCookie("auth", strconv.Itoa(user.Id)+"|"+authkey, 7*86400)
self.ajaxMsg("登录成功", MSG_OK)