rename skipauth -> manualauth

This commit is contained in:
Nazar Kanaev
2020-11-10 23:34:38 +00:00
parent 0e2da62081
commit 05634ebdb7
3 changed files with 8 additions and 7 deletions

View File

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