Fixed user.Session being unset on subsequent requests

This commit is contained in:
2017-10-06 21:29:54 +02:00
parent 4d535f9d8a
commit 895d831107
+4
View File
@@ -57,6 +57,10 @@ func (router *Router) ServeHTTP(w http.ResponseWriter, req *http.Request) {
sess = auth.FindSession(cookie.Value)
if sess != nil {
user, _ = auth.FindUser(sess.UserID)
if user != nil {
user.Session = sess
}
}
}