docs: Mention the auth placeholder in basicauth docs (#117)

This commit is contained in:
Francis Lavoie 2020-11-26 14:20:14 -05:00 committed by GitHub
parent bb0693bb7d
commit e2a6e4e212
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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