Make oneYear constant

This commit is contained in:
Melon 2024-02-15 15:23:27 +00:00
parent 2a23e75374
commit 2389199dd0
Signed by: melon
GPG Key ID: 6C9D970C50D26A25

View File

@ -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()