summaryrefslogtreecommitdiff
path: root/modules/caddyhttp/caddyauth
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2019-12-12 14:31:20 -0700
committerMatthew Holt <mholt@users.noreply.github.com>2019-12-12 14:31:20 -0700
commit87b6cf470baacd659cd20815de2804ae4a31df7f (patch)
tree2faea4d119909790d0b1a489c0ea46b34f44dd52 /modules/caddyhttp/caddyauth
parentf935458e3e30a8d9f47f37ad35fe9c546b841fa3 (diff)
Minor improvements; comments and shorter placeholders & module IDs
Diffstat (limited to 'modules/caddyhttp/caddyauth')
-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 c79d080..c814caf 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)
}