Correct comment

This commit is contained in:
Jason Streifling 2025-01-19 20:35:35 +01:00
parent 5b417ef87d
commit 2f4d5d4c7c

View File

@ -64,8 +64,8 @@ func StartSessions() (map[string]*Session, chan string) {
return sessions, sessionExpiryChan return sessions, sessionExpiryChan
} }
// ValidateSession is used for verifying that the user is logged in and returns // SessionIsActive is used for verifying that the user is logged in and returns
// their session and an error. // a bool.
func SessionIsActive(r *http.Request, s map[string]*Session) bool { func SessionIsActive(r *http.Request, s map[string]*Session) bool {
cookie, err := r.Cookie("cpolis_session") cookie, err := r.Cookie("cpolis_session")
if err != nil { if err != nil {