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

Loading…
Cancel
Save