fix: was using a pointer instead of calling the function-created var

This commit is contained in:
parsec 2023-03-16 21:53:03 -04:00
parent f3b9d67b77
commit 6f89e66306

View file

@ -35,7 +35,7 @@ func authMiddleware(next http.Handler) http.Handler {
} }
func parseAuth(auth string) { func parseAuth(auth string) {
identity := strings.Split(*setBasicAuth, ":") identity := strings.Split(auth, ":")
if len(identity) != 2 { if len(identity) != 2 {
log.Fatalln("basic auth must be like this: user:password") log.Fatalln("basic auth must be like this: user:password")
} }