Browse Source

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

master
Francis Lavoie 5 years ago
committed by GitHub
parent
commit
41a682ddde
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      modules/caddyhttp/caddyauth/caddyfile.go

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

Loading…
Cancel
Save