1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-23 09:50:31 +01:00

Merged in AD-555-prevent-email-enumeration (pull request #6)

removed messages indicating that the email is valid
This commit is contained in:
TimDaubenschuetz 2015-07-13 15:26:35 +02:00
commit 80be7e67be
2 changed files with 5 additions and 2 deletions

View File

@ -50,7 +50,7 @@ let PasswordResetContainer = React.createClass({
return (
<div>
<div className="ascribe-login-text ascribe-login-header">
{getLangText('An email has been sent to')} "{this.state.isRequested}"
{getLangText('If your email address exists in our database, you will receive a password recovery link in a few minutes.')}
</div>
</div>
);
@ -64,7 +64,7 @@ let PasswordResetContainer = React.createClass({
let PasswordRequestResetForm = React.createClass({
handleSuccess() {
let notificationText = getLangText('Request successfully sent, check your email');
let notificationText = getLangText('If your email address exists in our database, you will receive a password recovery link in a few minutes.');
let notification = new GlobalNotificationModel(notificationText, 'success', 50000);
GlobalNotificationActions.appendGlobalNotification(notification);
this.props.handleRequestSuccess(this.refs.form.refs.email.state.value);

View File

@ -209,6 +209,7 @@ const languages = {
'Create editions': 'Create editions',
'I agree to the Terms of Service': 'I agree to the Terms of Service',
'read': 'read',
'If your email address exists in our database, you will receive a password recovery link in a few minutes.': 'If your email address exists in our database, you will receive a password recovery link in a few minutes.',
},
'de': {
'ID': 'ID',
@ -418,6 +419,7 @@ const languages = {
'Create editions': 'Create editions',
'I agree to the Terms of Service': 'I agree to the Terms of Service',
'read': 'read',
'If your email address exists in our database, you will receive a password recovery link in a few minutes.': 'If your email address exists in our database, you will receive a password recovery link in a few minutes.',
},
'fr': {
'ID': 'ID',
@ -627,6 +629,7 @@ const languages = {
'Create editions': 'Create editions',
'I agree to the Terms of Service': 'I agree to the Terms of Service',
'read': 'read',
'If your email address exists in our database, you will receive a password recovery link in a few minutes.': 'Si votre adresse électronique existe dans notre base de données, vous recevrez un lien de récupération de mot de passe dans quelques minutes.',
}
};