Catch more errors after login call

stable
David Barragán Merino 2014-07-15 19:23:33 +02:00
parent 7bd03e221c
commit 5dc860fb1e
1 changed files with 3 additions and 4 deletions

View File

@ -169,7 +169,6 @@ LoginDirective = ($auth, $confirm, $location, $config) ->
$location.path("/project/project-example-0/backlog") $location.path("/project/project-example-0/backlog")
promise.then null, (response) -> promise.then null, (response) ->
if response.data._error_message
$confirm.notify("light-error", "According to our Oompa Loompas, $confirm.notify("light-error", "According to our Oompa Loompas,
your username/email or password your username/email or password
are incorrect.") #TODO: i18n are incorrect.") #TODO: i18n