Browse Source

Fixed accidental dependency on notebook3

master
Gisle Aune 7 years ago
parent
commit
7e7c641949
  1. 4
      router.go

4
router.go

@ -6,8 +6,6 @@ import (
"strings"
"time"
"git.aiterp.net/gisle/notebook3/session"
"git.aiterp.net/gisle/wrouter/auth"
)
@ -40,7 +38,7 @@ func (router *Router) ServeHTTP(w http.ResponseWriter, req *http.Request) {
// Resolve session cookies
var user *auth.User
var sess *auth.Session
cookie, err := req.Cookie(session.CookieName)
cookie, err := req.Cookie(auth.SessionCookieName)
if cookie != nil && err == nil {
sess = auth.FindSession(cookie.Value)
if sess != nil {

Loading…
Cancel
Save