Skip to content

Commit 75ada08

Browse files
committed
bump cookie expire time
1 parent 0d6a0ff commit 75ada08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/auth/auth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func Authenticate(rw http.ResponseWriter, username, password, basepath string) {
2626
http.SetCookie(rw, &http.Cookie{
2727
Name: "auth",
2828
Value: username + ":" + secret(username, password),
29-
Expires: time.Now().Add(time.Hour * 24 * 7), // 1 week,
29+
Expires: time.Now().Add(time.Hour * 24 * 7 * 12), // 12 weeks,
3030
Path: basepath,
3131
})
3232
}

0 commit comments

Comments
 (0)