From 5dc860fb1e5a91aaf556a26caef20d96801c3f14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Barrag=C3=A1n=20Merino?= Date: Tue, 15 Jul 2014 19:23:33 +0200 Subject: [PATCH] Catch more errors after login call --- app/coffee/modules/auth.coffee | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/coffee/modules/auth.coffee b/app/coffee/modules/auth.coffee index e3a1c720..f0317abc 100644 --- a/app/coffee/modules/auth.coffee +++ b/app/coffee/modules/auth.coffee @@ -169,10 +169,9 @@ LoginDirective = ($auth, $confirm, $location, $config) -> $location.path("/project/project-example-0/backlog") promise.then null, (response) -> - if response.data._error_message - $confirm.notify("light-error", "According to our Oompa Loompas, - your username/email or password - are incorrect.") #TODO: i18n + $confirm.notify("light-error", "According to our Oompa Loompas, + your username/email or password + are incorrect.") #TODO: i18n $el.on "submit", (event) -> event.preventDefault()