summaryrefslogtreecommitdiffhomepage
path: root/modules/caddyhttp/caddyauth/caddyauth.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/caddyhttp/caddyauth/caddyauth.go')
-rw-r--r--modules/caddyhttp/caddyauth/caddyauth.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/caddyhttp/caddyauth/caddyauth.go b/modules/caddyhttp/caddyauth/caddyauth.go
index c79d080ba..c814caf5f 100644
--- a/modules/caddyhttp/caddyauth/caddyauth.go
+++ b/modules/caddyhttp/caddyauth/caddyauth.go
@@ -74,7 +74,7 @@ func (a Authentication) ServeHTTP(w http.ResponseWriter, r *http.Request, next c
}
repl := r.Context().Value(caddy.ReplacerCtxKey).(caddy.Replacer)
- repl.Set("http.handlers.authentication.user.id", user.ID)
+ repl.Set("http.authentication.user.id", user.ID)
return next.ServeHTTP(w, r)
}