parent
342e1d6328
commit
929657fd34
2 changed files with 7 additions and 8 deletions
|
@ -21,7 +21,7 @@ func sessionsMiddleware(db *database.DB) func(http.Handler) http.Handler {
|
|||
return
|
||||
}
|
||||
if err == nil {
|
||||
if len(cookie.Value) != 36 {
|
||||
if len(cookie.Value) != 43 {
|
||||
unsetSesssionCookie(w)
|
||||
} else {
|
||||
session, err := db.LoadSessionById(cookie.Value)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue