gofmt
This commit is contained in:
parent
391ce61362
commit
9f376db0f4
24 changed files with 65 additions and 67 deletions
|
|
@ -20,7 +20,7 @@ func unsafeMethod(method string) bool {
|
|||
}
|
||||
|
||||
func (m *Middleware) Handler(c *router.Context) {
|
||||
if strings.HasPrefix(c.Req.URL.Path, m.BasePath + m.Public) {
|
||||
if strings.HasPrefix(c.Req.URL.Path, m.BasePath+m.Public) {
|
||||
c.Next()
|
||||
return
|
||||
}
|
||||
|
|
@ -46,7 +46,7 @@ func (m *Middleware) Handler(c *router.Context) {
|
|||
} else {
|
||||
c.HTML(http.StatusOK, assets.Template("login.html"), map[string]string{
|
||||
"username": username,
|
||||
"error": "Invalid username/password",
|
||||
"error": "Invalid username/password",
|
||||
})
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue