Fix success message

stable
David Barragán Merino 2014-07-09 14:46:02 +02:00
parent 73aed464c1
commit 7b85ea6f60
1 changed files with 5 additions and 6 deletions

View File

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