Skip to content

Commit

Permalink
caddyauth: Add realm to basicauth Caddyfile directive (#3315)
Browse files Browse the repository at this point in the history
  • Loading branch information
francislavoie authored May 18, 2020
1 parent 7243454 commit 41a682d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/caddyhttp/caddyauth/caddyfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit 41a682d

Please sign in to comment.