|
|
@ -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 { |
|
|
|