Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
122
func
userHasInfo(user User) bool {
123
return
user.ID !=
""
|| len(user.Metadata) > 0
124
}
125
126
func
setAuthUserPlaceholders(repl *caddy.Replacer, namespace string, user User) {
127
repl.Set(namespace+
".id"
, user.ID)
Callers
1
ServeHTTP
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected