mirror of
https://github.com/caddyserver/website.git
synced 2025-05-06 11:47:12 -04:00
docs: Mention the auth placeholder in basicauth docs
This commit is contained in:
parent
bb0693bb7d
commit
0f2a5f161f
1 changed files with 2 additions and 0 deletions
|
@ -12,6 +12,8 @@ When a user requests a resource that is protected, the browser will prompt the u
|
||||||
|
|
||||||
Caddy configuration does not accept plaintext passwords; you MUST hash them before putting them into the configuration. The [`caddy hash-password`](/docs/command-line#caddy-hash-password) command can help with this.
|
Caddy configuration does not accept plaintext passwords; you MUST hash them before putting them into the configuration. The [`caddy hash-password`](/docs/command-line#caddy-hash-password) command can help with this.
|
||||||
|
|
||||||
|
After a successful authentication, the `{http.auth.user.id}` placeholder will be available, which contains the authenticated username.
|
||||||
|
|
||||||
|
|
||||||
## Syntax
|
## Syntax
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue