Fix success message on forgot pass message

stable
Xavier Julián 2016-03-28 09:55:21 +02:00
parent 9f422ee665
commit b412350e9f
2 changed files with 6 additions and 3 deletions

View File

@ -358,8 +358,10 @@ ForgotPasswordDirective = ($auth, $confirm, $location, $navUrls, $translate) ->
onSuccessSubmit = (response) ->
$location.path($navUrls.resolve("login"))
text = $translate.instant("FORGOT_PASSWORD_FORM.SUCCESS")
$confirm.success(text)
title = $translate.instant("FORGOT_PASSWORD_FORM.SUCCESS_TITLE")
message = $translate.instant("FORGOT_PASSWORD_FORM.SUCCESS_TEXT")
$confirm.success(title, message)
onErrorSubmit = (response) ->
text = $translate.instant("FORGOT_PASSWORD_FORM.ERROR")

View File

@ -318,7 +318,8 @@
"PLACEHOLDER_FIELD": "Username or email",
"ACTION_RESET_PASSWORD": "Reset Password",
"LINK_CANCEL": "Nah, take me back. I think I remember it.",
"SUCCESS": "<strong>Check your inbox!</strong><br />We have sent you an email with the instructions to set a new password",
"SUCCESS_TITLE": "Check your inbox!",
"SUCCESS_TEXT": "We have sent you an email with the instructions to set a new password",
"ERROR": "According to our Oompa Loompas, your are not registered yet."
},
"CHANGE_PASSWORD": {