This commit is contained in:
TwinProduction 2021-05-24 21:46:00 -04:00
parent 18420c2d60
commit 7bc381b356

View File

@ -5,7 +5,7 @@ import (
"strings" "strings"
) )
// Handler takes care of security for a given handler with the given security configuratioon // Handler takes care of security for a given handler with the given security configuration
func Handler(handler http.HandlerFunc, security *Config) http.HandlerFunc { func Handler(handler http.HandlerFunc, security *Config) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) { return func(w http.ResponseWriter, r *http.Request) {
usernameEntered, passwordEntered, ok := r.BasicAuth() usernameEntered, passwordEntered, ok := r.BasicAuth()