From f6cce599bff72a17e592edda68b92d2948c576c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Escolano?= Date: Mon, 26 Sep 2022 10:10:39 +0200 Subject: [PATCH] Fix basicauth example --- src/docs/markdown/caddyfile/directives/basicauth.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/docs/markdown/caddyfile/directives/basicauth.md b/src/docs/markdown/caddyfile/directives/basicauth.md index 7010ffc..db095b4 100644 --- a/src/docs/markdown/caddyfile/directives/basicauth.md +++ b/src/docs/markdown/caddyfile/directives/basicauth.md @@ -27,7 +27,7 @@ basicauth [] [ []] { - **<hash_algorithm>** is the name of the password hashing algorithm (or KDF) used for the hashes in this configuration. Default: `bcrypt` - **<realm>** is a custom realm name. - **<username>** is a username or user ID. -- **<hashed_password>** is the password hash. +- **<hashed_password>** is the base-64 encoding of the password hash. - **<salt_base64>** is the base-64 encoding of the password salt, if an external salt is required. @@ -37,7 +37,7 @@ Protect all resources in /secret so only Bob can access them with the password " ```caddy-d basicauth /secret/* { - Bob $2a$14$Zkx19XLiW6VYouLHR5NmfOFU0z2GTNmpkT/5qqR7hx4IjWJPDhjvG + Bob JDJhJDE0JFpreDE5WExpVzZWWW91TEhSNU5tZk9GVTB6MkdUTm1wa1QvNXFxUjdoeDRJaldKUERoanZH } ```