~emersion/sinwon

f87f116e8f838cc8d60207d0bae175e2e53ff911 — Simon Ser 7 months ago 9a40194
Fix outdated login cookie name
1 files changed, 1 insertions(+), 1 deletions(-)

M middleware.go
M middleware.go => middleware.go +1 -1
@@ 77,7 77,7 @@ func isForwardedHTTPS(req *http.Request) bool {

func loginTokenMiddleware(next http.Handler) http.Handler {
	return http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) {
		cookie, _ := req.Cookie("sinwon-token")
		cookie, _ := req.Cookie(loginCookieName)
		if cookie == nil {
			next.ServeHTTP(w, req)
			return