Correct comment
This commit is contained in:
parent
5b417ef87d
commit
2f4d5d4c7c
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user