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 {