mirror of
https://github.com/1f349/tulip.git
synced 2024-12-22 16:24:10 +00:00
Make oneYear constant
This commit is contained in:
parent
2a23e75374
commit
2389199dd0
@ -144,7 +144,7 @@ func (h *HttpServer) LoginPost(rw http.ResponseWriter, req *http.Request, _ http
|
||||
h.SafeRedirect(rw, req)
|
||||
}
|
||||
|
||||
var oneYear = 365 * 24 * time.Hour
|
||||
const oneYear = 365 * 24 * time.Hour
|
||||
|
||||
func (h *HttpServer) setLoginDataCookie(rw http.ResponseWriter, authData UserAuth) bool {
|
||||
ps := claims.NewPermStorage()
|
||||
|
Loading…
Reference in New Issue
Block a user