修改列表和登录
登录设置默认一天 列表页各行换色并点击换色 修改返回的一些bug
This commit is contained in:
@@ -169,7 +169,7 @@ func (this *MainController) Login() {
|
||||
if remember == "yes" {
|
||||
this.Ctx.SetCookie("auth", strconv.Itoa(user.Id)+"|"+authkey, 7*86400)
|
||||
} else {
|
||||
this.Ctx.SetCookie("auth", strconv.Itoa(user.Id)+"|"+authkey)
|
||||
this.Ctx.SetCookie("auth", strconv.Itoa(user.Id)+"|"+authkey,86400)
|
||||
}
|
||||
this.redirect(beego.URLFor("TaskController.List"))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user