caddyauth: Add realm to basicauth Caddyfile directive (#3315)

This commit is contained in:
Francis Lavoie 2020-05-18 14:19:28 -04:00 committed by GitHub
parent 7243454a96
commit 41a682ddde
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()
}