MCPcopy
hub / github.com/caddyserver/caddy / userHasInfo

Function userHasInfo

modules/caddyhttp/caddyauth/caddyauth.go:122–124  ·  view source on GitHub ↗
(user User)

Source from the content-addressed store, hash-verified

120}
121
122func userHasInfo(user User) bool {
123 return user.ID != "" || len(user.Metadata) > 0
124}
125
126func setAuthUserPlaceholders(repl *caddy.Replacer, namespace string, user User) {
127 repl.Set(namespace+".id", user.ID)

Callers 1

ServeHTTPMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected