Fix overriding previous logger in context

This commit is contained in:
Deluan
2022-12-14 11:50:16 -05:00
parent 6c4a0be6ff
commit 6489dd4478
3 changed files with 6 additions and 3 deletions
-1
View File
@@ -100,7 +100,6 @@ func authenticate(ds model.DataStore) func(next http.Handler) http.Handler {
ctx = log.NewContext(r.Context(), "username", username)
ctx = request.WithUser(ctx, *usr)
ctx = request.WithUsername(ctx, usr.UserName)
r = r.WithContext(ctx)
next.ServeHTTP(w, r)