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,11 +231,10 @@ 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("<strong>Check your inbox!</strong><br />
We have sent a mail to<br />
<strong>#{data.email}</strong><br />
<strong>#{response.data.email}</strong><br />
with the instructions to set a new password") #TODO: i18n
promise.then null, (response) ->