docs: Mention the auth placeholder in basicauth docs

This commit is contained in:
Francis Lavoie 2020-11-26 02:36:23 -05:00
parent bb0693bb7d
commit 0f2a5f161f
No known key found for this signature in database
GPG key ID: 7D1A27F0725BE5D8

View file

@ -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