Merge pull request #81 from fossyy/staging

Remove unnecessary context value call
This commit is contained in:
2024-09-21 18:34:57 +07:00
committed by GitHub

View File

@ -87,7 +87,6 @@ func Auth(next http.HandlerFunc, w http.ResponseWriter, r *http.Request) {
case session.Authorized:
ctx := context.WithValue(r.Context(), "user", user)
req := r.WithContext(ctx)
r.Context().Value("user")
next.ServeHTTP(w, req)
return
case session.Unauthorized: