mirror of
https://github.com/caddyserver/website.git
synced 2025-04-22 13:06:16 -04:00
docs: Mention the auth placeholder in basicauth docs (#117)
This commit is contained in:
parent
bb0693bb7d
commit
e2a6e4e212
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