mirror of
https://github.com/labstack/echo.git
synced 2025-03-23 21:29:26 +02:00
Update server.go
This commit is contained in:
parent
c2a30de34f
commit
cccaa1ee26
@ -25,7 +25,6 @@ func main() {
|
|||||||
|
|
||||||
// Basic auth
|
// Basic auth
|
||||||
e.Use(mw.BasicAuth(func(u, p string) bool {
|
e.Use(mw.BasicAuth(func(u, p string) bool {
|
||||||
println(u, p)
|
|
||||||
if u == "joe" && p == "secret" {
|
if u == "joe" && p == "secret" {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user