From d3d6a75b91eff3d7714a377c311e2dbb072463ff Mon Sep 17 00:00:00 2001 From: Bobby Rullo Date: Wed, 30 Sep 2015 17:07:00 -0700 Subject: [PATCH] fixup - Code review changes. --- cmd/dex-worker/main.go | 2 +- server/config.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/dex-worker/main.go b/cmd/dex-worker/main.go index d45f1703..1ebbc10e 100644 --- a/cmd/dex-worker/main.go +++ b/cmd/dex-worker/main.go @@ -44,7 +44,7 @@ func main() { emailFrom := fs.String("email-from", "no-reply@coreos.com", "emails sent from dex will come from this address") emailConfig := fs.String("email-cfg", "./static/fixtures/emailer.json", "configures emailer.") - enableRegistration := fs.Bool("enable-registration", true, "Allows users to self-register") + enableRegistration := fs.Bool("enable-registration", false, "Allows users to self-register") noDB := fs.Bool("no-db", false, "manage entities in-process w/o any encryption, used only for single-node testing") diff --git a/server/config.go b/server/config.go index 05d93199..fe7c41f7 100644 --- a/server/config.go +++ b/server/config.go @@ -186,8 +186,8 @@ func (cfg *MultiServerConfig) Configure(srv *Server) error { return nil } -func getTemplates(issuerName, - issuerLogoURL string, enableRegister bool, dir string) (*template.Template, error) { +func getTemplates(issuerName, issuerLogoURL string, + enableRegister bool, dir string) (*template.Template, error) { tpl := template.New("").Funcs(map[string]interface{}{ "issuerName": func() string { return issuerName