diff options
author | Francis Lavoie <lavofr@gmail.com> | 2020-05-18 14:19:28 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-18 12:19:28 -0600 |
commit | 41a682ddde15f333b11ac35677ab781ec40e0021 (patch) | |
tree | 48bb9fddc5d882bddcf652ae3d1e53172b0d58c4 /modules/caddyhttp | |
parent | 7243454a96d6dcbe504af7287de1e68ab4b80c83 (diff) |
caddyauth: Add realm to basicauth Caddyfile directive (#3315)
Diffstat (limited to 'modules/caddyhttp')
-rw-r--r-- | modules/caddyhttp/caddyauth/caddyfile.go | 3 |
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() } |