We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 736d153 commit 8ddc90dCopy full SHA for 8ddc90d
website/content/middleware/basic-auth.md
@@ -15,7 +15,7 @@ Basic auth middleware provides an HTTP basic authentication.
15
*Usage*
16
17
```go
18
-e.Use(middleware.BasicAuth(func(username, password string) bool {
+e.Use(middleware.BasicAuth(func(username, password string, c echo.Context) bool {
19
if username == "joe" && password == "secret" {
20
return true
21
}
0 commit comments