From 2f4d5d4c7ccd9409ed5d7a3fac6ffa87b04ad55a Mon Sep 17 00:00:00 2001 From: Jason Streifling Date: Sun, 19 Jan 2025 20:35:35 +0100 Subject: [PATCH] Correct comment --- cmd/frontend/sessions.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/frontend/sessions.go b/cmd/frontend/sessions.go index 7aacbe8..ae29c81 100644 --- a/cmd/frontend/sessions.go +++ b/cmd/frontend/sessions.go @@ -64,8 +64,8 @@ func StartSessions() (map[string]*Session, chan string) { return sessions, sessionExpiryChan } -// ValidateSession is used for verifying that the user is logged in and returns -// their session and an error. +// SessionIsActive is used for verifying that the user is logged in and returns +// a bool. func SessionIsActive(r *http.Request, s map[string]*Session) bool { cookie, err := r.Cookie("cpolis_session") if err != nil {