gettext('{paragraphStart}You entered {boldStart}{email}{boldEnd}. If this email address is associated with your {platform_name} account, we will send a message with password reset instructions to this email address.{paragraphEnd}'+// eslint-disable-line max-len
'{paragraphStart}If you do not receive a password reset message, verify that you entered the correct email address, or check your spam folder.{paragraphEnd}'+// eslint-disable-line max-len
'{paragraphStart}If you need further assistance, {anchorStart}contact technical support{anchorEnd}.{paragraphEnd}'),{// eslint-disable-line max-len
msg=gettext('An error has occurred. Check your Internet connection and try again.');
},
}elseif(error.status===500){
msg=gettext('An error has occurred. Try refreshing the page, or check your Internet connection.');
forgotPassword:function(event){
}
event.preventDefault();
this.errors=['<li>'+msg+'</li>'];
this.clearPasswordResetSuccess();
this.trigger('password-help');
this.clearPasswordResetSuccess();
/* If we've gotten a 403 error, it means that we've successfully
},
* authenticated with a third-party provider, but we haven't
* linked the account to an EdX account. In this case,
postFormSubmission:function(){
* we need to prompt the user to enter a little more information
this.clearPasswordResetSuccess();
* to complete the registration process.
},
*/
if(error.status===403&&
resetEmail:function(){
error.responseText==='third-party-auth'&&
varemail=$('#password-reset-email').val(),
this.currentProvider){
successTitle=gettext('Check Your Email'),
this.clearFormErrors();
successMessageHtml=HtmlUtils.interpolateHtml(
this.renderAuthWarning();
gettext('{paragraphStart}You entered {boldStart}{email}{boldEnd}. If this email address is associated with your {platform_name} account, we will send a message with password reset instructions to this email address.{paragraphEnd}'+// eslint-disable-line max-len
}else{
'{paragraphStart}If you do not receive a password reset message, verify that you entered the correct email address, or check your spam folder.{paragraphEnd}'+// eslint-disable-line max-len
gettext('We\'ve sent a confirmation message to {new_email_address}. Click the link in the message to update your email address.'),// eslint-disable-line max-len
gettext('We\'ve sent a confirmation message to {new_email_address}. Click the link in the message to update your email address.'),// eslint-disable-line max-len
{'new_email_address':this.fieldValue()}
{new_email_address:this.fieldValue()}
)
)
);
);
}
}
...
@@ -53,7 +52,7 @@
...
@@ -53,7 +52,7 @@
fieldTemplate:field_dropdown_account_template,
fieldTemplate:field_dropdown_account_template,
saveSucceeded:function(){
saveSucceeded:function(){
vardata={
vardata={
'language':this.modelValue()
language:this.modelValue()
};
};
varview=this;
varview=this;
...
@@ -189,9 +188,19 @@
...
@@ -189,9 +188,19 @@
successMessage:function(){
successMessage:function(){
returnHtmlUtils.joinHtml(
returnHtmlUtils.joinHtml(
this.indicators.success,
this.indicators.success,
StringUtils.interpolate(
HtmlUtils.interpolateHtml(
gettext('We\'ve sent a message to {email_address}. Click the link in the message to reset your password.'),// eslint-disable-line max-len
gettext('We\'ve sent a message to {email}. Click the link in the message to reset your password. Didn\'t receive the message? Contact {anchorStart}technical support{anchorEnd}.'),// eslint-disable-line max-len