mirror of
https://github.com/labstack/echo.git
synced 2024-12-24 20:14:31 +02:00
Merge pull request #242 from dfreire/master
Fixed documentation example for group with basic auth.
This commit is contained in:
commit
f5bf0eb0dd
@ -33,8 +33,8 @@ BasicAuth middleware provides an HTTP basic authentication.
|
||||
*Example*
|
||||
|
||||
```go
|
||||
e.Group("/admin")
|
||||
e.Use(mw.BasicAuth(func(usr, pwd string) bool {
|
||||
g := e.Group("/admin")
|
||||
g.Use(mw.BasicAuth(func(usr, pwd string) bool {
|
||||
if usr == "joe" && pwd == "secret" {
|
||||
return true
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user