rename skipauth -> manualauth
This commit is contained in:
parent
0e2da62081
commit
05634ebdb7
3 changed files with 8 additions and 7 deletions
|
|
@ -50,7 +50,7 @@ func (h Handler) ServeHTTP(rw http.ResponseWriter, req *http.Request) {
|
|||
return
|
||||
}
|
||||
|
||||
if h.requiresAuth() && !route.skipAuth {
|
||||
if h.requiresAuth() && !route.manualAuth {
|
||||
if !userIsAuthenticated(req, h.Username, h.Password) {
|
||||
rw.WriteHeader(http.StatusUnauthorized)
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue