From cfc934a81713b26518f1ae0fa94900a2da77553b Mon Sep 17 00:00:00 2001 From: Greg Steuck Date: Mon, 5 Jul 2021 15:53:01 -0700 Subject: dashboard/app: cover checkClient and fix for the exposed bug Required checkClient to take the config as a parameter. --- dashboard/app/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dashboard/app/api.go') diff --git a/dashboard/app/api.go b/dashboard/app/api.go index 53803a5c2..7bdd3731b 100644 --- a/dashboard/app/api.go +++ b/dashboard/app/api.go @@ -111,7 +111,7 @@ func handleAPI(c context.Context, r *http.Request) (reply interface{}, err error return nil, err } // Somewhat confusingly the "key" parameter is the password. - ns, err := checkClient(client, r.PostFormValue("key"), subj) + ns, err := checkClient(config, client, r.PostFormValue("key"), subj) if err != nil { if client != "" { log.Errorf(c, "%v", err) -- cgit mrf-deployment