Change ValidateSession() to SessionIsActive() which only returns a bool

This commit is contained in:
2025-01-19 20:34:12 +01:00
parent 04283d5917
commit 5b417ef87d
2 changed files with 5 additions and 9 deletions

View File

@ -10,7 +10,7 @@ import (
func ServeImage(c *b.Config, s map[string]*f.Session) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
if _, err := f.ValidateSession(w, r, c, s); err != nil {
if !f.SessionIsActive(r, s) {
if !tokenIsVerified(w, r, c) {
return
}