From 7b85ea6f607561a49304eabef503602f2ae2c2d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Barrag=C3=A1n=20Merino?= Date: Wed, 9 Jul 2014 14:46:02 +0200 Subject: [PATCH] Fix success message --- app/coffee/modules/auth.coffee | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) 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