summaryrefslogtreecommitdiff
path: root/modules/caddyhttp
diff options
context:
space:
mode:
authorFrancis Lavoie <lavofr@gmail.com>2020-05-18 14:19:28 -0400
committerGitHub <noreply@github.com>2020-05-18 12:19:28 -0600
commit41a682ddde15f333b11ac35677ab781ec40e0021 (patch)
tree48bb9fddc5d882bddcf652ae3d1e53172b0d58c4 /modules/caddyhttp
parent7243454a96d6dcbe504af7287de1e68ab4b80c83 (diff)
caddyauth: Add realm to basicauth Caddyfile directive (#3315)
Diffstat (limited to 'modules/caddyhttp')
-rw-r--r--modules/caddyhttp/caddyauth/caddyfile.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/caddyhttp/caddyauth/caddyfile.go b/modules/caddyhttp/caddyauth/caddyfile.go
index 31acd61..9fe8a80 100644
--- a/modules/caddyhttp/caddyauth/caddyfile.go
+++ b/modules/caddyhttp/caddyauth/caddyfile.go
@@ -46,6 +46,9 @@ func parseCaddyfile(h httpcaddyfile.Helper) (caddyhttp.MiddlewareHandler, error)
hashName = "bcrypt"
case 1:
hashName = args[0]
+ case 2:
+ hashName = args[0]
+ ba.Realm = args[1]
default:
return nil, h.ArgErr()
}