From a2dadfd6a64495b3d2b0392d15df3bff322909fe Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Mon, 13 Oct 2014 21:30:12 -0700 Subject: [PATCH] added log message when user attempts to login but registration closed --- server/handler/login.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server/handler/login.go b/server/handler/login.go index 95c009de1..fdae48a5a 100644 --- a/server/handler/login.go +++ b/server/handler/login.go @@ -52,6 +52,7 @@ func GetLogin(c web.C, w http.ResponseWriter, r *http.Request) { if capability.Enabled(ctx, capability.Registration) == false { users, err := datastore.GetUserList(ctx) if err != nil || len(users) != 0 { + log.Println("Unable to create account. Registration is closed") w.WriteHeader(http.StatusForbidden) return }