From e8f23eaee9ab59205feb77da99b97450529870c2 Mon Sep 17 00:00:00 2001 From: Alejandro Alonso Date: Thu, 2 Oct 2014 13:07:13 +0200 Subject: [PATCH] Improving feedback when registering users --- app/coffee/modules/auth.coffee | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/coffee/modules/auth.coffee b/app/coffee/modules/auth.coffee index 752a9e5d..3aa641f2 100644 --- a/app/coffee/modules/auth.coffee +++ b/app/coffee/modules/auth.coffee @@ -157,7 +157,6 @@ PublicRegisterMessageDirective = ($config, $navUrls) -> templateFn = -> publicRegisterEnabled = $config.get("publicRegisterEnabled") - console.log publicRegisterEnabled if not publicRegisterEnabled return "" return template({url:$navUrls.resolve("register")}) @@ -226,8 +225,7 @@ RegisterDirective = ($auth, $confirm, $location, $navUrls, $config) -> $location.path($navUrls.resolve("home")) onErrorSubmit = (response) -> - $confirm.notify("light-error", "According to our Oompa Loompas, the username or email is - already in use.") #TODO: i18n + $confirm.notify("light-error", "According to our Oompa Loompas there was an error. #{response.data._error_message}") #TODO: i18n submit = -> if not form.validate()