Catch more errors after login call
parent
7bd03e221c
commit
5dc860fb1e
|
@ -169,10 +169,9 @@ 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
|
|
||||||
|
|
||||||
$el.on "submit", (event) ->
|
$el.on "submit", (event) ->
|
||||||
event.preventDefault()
|
event.preventDefault()
|
||||||
|
|
Loading…
Reference in New Issue