1
0
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:
Vishal Rana 2015-10-23 18:20:53 -07:00
commit f5bf0eb0dd

View File

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