Improving feedback when registering users

stable
Alejandro Alonso 2014-10-02 13:07:13 +02:00
parent f7c3d901b9
commit e8f23eaee9
1 changed files with 1 additions and 3 deletions

View File

@ -157,7 +157,6 @@ PublicRegisterMessageDirective = ($config, $navUrls) ->
templateFn = -> templateFn = ->
publicRegisterEnabled = $config.get("publicRegisterEnabled") publicRegisterEnabled = $config.get("publicRegisterEnabled")
console.log publicRegisterEnabled
if not publicRegisterEnabled if not publicRegisterEnabled
return "" return ""
return template({url:$navUrls.resolve("register")}) return template({url:$navUrls.resolve("register")})
@ -226,8 +225,7 @@ RegisterDirective = ($auth, $confirm, $location, $navUrls, $config) ->
$location.path($navUrls.resolve("home")) $location.path($navUrls.resolve("home"))
onErrorSubmit = (response) -> onErrorSubmit = (response) ->
$confirm.notify("light-error", "According to our Oompa Loompas, the username or email is $confirm.notify("light-error", "According to our Oompa Loompas there was an error. #{response.data._error_message}") #TODO: i18n
already in use.") #TODO: i18n
submit = -> submit = ->
if not form.validate() if not form.validate()