aboutsummaryrefslogtreecommitdiffstats
path: root/dashboard/app/api.go
diff options
context:
space:
mode:
authorGreg Steuck <greg@nest.cx>2021-07-05 15:53:01 -0700
committerDmitry Vyukov <dvyukov@google.com>2021-07-14 07:16:41 +0200
commitcfc934a81713b26518f1ae0fa94900a2da77553b (patch)
tree5d6b2023aa9030a4e7e5cfdacb468ac993c0763c /dashboard/app/api.go
parent8a2d0342e072b3bdbc232f5158f421a3b96cc2a0 (diff)
dashboard/app: cover checkClient and fix for the exposed bug
Required checkClient to take the config as a parameter.
Diffstat (limited to 'dashboard/app/api.go')
-rw-r--r--dashboard/app/api.go2
1 files changed, 1 insertions, 1 deletions
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)