diff --git a/app/coffee/modules/auth.coffee b/app/coffee/modules/auth.coffee index c9b416c9..08284372 100644 --- a/app/coffee/modules/auth.coffee +++ b/app/coffee/modules/auth.coffee @@ -231,12 +231,11 @@ ForgotPasswordDirective = ($auth, $confirm, $location) -> promise = $auth.forgotPassword($scope.data) promise.then (response) -> - if response.data.detail - $location.path("/login") # TODO: Use the future 'urls' service - $confirm.success("Check your inbox!
- We have sent a mail to
- #{data.email}
- with the instructions to set a new password") #TODO: i18n + $location.path("/login") # TODO: Use the future 'urls' service + $confirm.success("Check your inbox!
+ We have sent a mail to
+ #{response.data.email}
+ with the instructions to set a new password") #TODO: i18n promise.then null, (response) -> if response.data._error_message