Fix success message
parent
73aed464c1
commit
7b85ea6f60
|
@ -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) ->
|
||||
|
|
Loading…
Reference in New Issue