nits
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
Elizabeth Hunt 2024-04-06 13:40:46 -06:00
parent 5177735b83
commit cad8e2c4ed
Signed by: simponic
GPG Key ID: 2909B9A7FF6213EE
2 changed files with 1 additions and 2 deletions

View File

@ -144,7 +144,7 @@ func VerifySessionContinuation(context *types.RequestContext, req *http.Request,
http.SetCookie(resp, &http.Cookie{ http.SetCookie(resp, &http.Cookie{
Name: "session", Name: "session",
Value: "", Value: "",
MaxAge: 0, // reset session cookie in case MaxAge: 0,
}) })
context.User = nil context.User = nil

View File

@ -276,7 +276,6 @@ func TestRefreshUpdatesExpiration(t *testing.T) {
updatedSession, _ := database.GetSession(db, cookies["session"].Value) updatedSession, _ := database.GetSession(db, cookies["session"].Value)
// if session expiration is greater than or equal to updated session expiration
if session.ExpireAt.After(updatedSession.ExpireAt) || session.ExpireAt.Equal(updatedSession.ExpireAt) { if session.ExpireAt.After(updatedSession.ExpireAt) || session.ExpireAt.Equal(updatedSession.ExpireAt) {
t.Errorf("expected session expiration to be updated, got %s and %s", session.ExpireAt, updatedSession.ExpireAt) t.Errorf("expected session expiration to be updated, got %s and %s", session.ExpireAt, updatedSession.ExpireAt)
} }