Добавлены тексты ошибок для формы повторной отправки письма с активацией аккаунта

This commit is contained in:
ErickSkrauch 2016-05-23 21:19:07 +03:00
parent 2f85698f9f
commit 40466189fd
5 changed files with 12 additions and 2 deletions

View File

@ -32,6 +32,7 @@ export default class ResendActivation extends BaseAuthBody {
type="email"
required
placeholder={registerMessages.yourEmail}
defaultValue={this.context.user.email}
/>
</div>
</div>

View File

@ -112,12 +112,14 @@
"components.userbar.logout": "Logout",
"components.userbar.register": "Join",
"pages.root.siteName": "Ely.by",
"services.accountAlreadyActivated": "This account is already activated",
"services.accountNotActivated": "The account is not activated",
"services.doYouWantRequestKey": "Do you want to request a new key?",
"services.emailFrequency": "Please cool down, you are requesting Emails too often. New key can be retrieved {time}.",
"services.emailInvalid": "Email is invalid",
"services.emailIsTempmail": "Tempmail Email addresses is not allowed",
"services.emailNotAvailable": "This Email is already registered.",
"services.emailNotFound": "Specified Email is not found",
"services.emailRequired": "Email is required",
"services.emailToLong": "Email is too long",
"services.forgotYourPassword": "forgot your password",

View File

@ -3,7 +3,7 @@
"components.auth.activation.activationMailWasSent": "На {email} отправлено письмо с инструкциями по завершению регистрации",
"components.auth.activation.confirmEmail": "Подтверждение Email",
"components.auth.activation.didNotReceivedEmail": "Не получили Email?",
"components.auth.activation.enterTheCode": "Укажите код, полученный на Email здесь",
"components.auth.activation.enterTheCode": "Укажите код из Email здесь",
"components.auth.appInfo.appDescription": "Вы находитесь на сервисе авторизации Ely.by, позволяющему вам безопасно совершать любые операции над вашим аккаунтом. Это единая точка входа для сайтов и настольных программ, ключая игровые лаунчеры.",
"components.auth.appInfo.appName": "Аккаунты Ely",
"components.auth.appInfo.documentation": "документацию",
@ -112,12 +112,14 @@
"components.userbar.logout": "Выход",
"components.userbar.register": "Регистрация",
"pages.root.siteName": "Ely.by",
"services.accountAlreadyActivated": "Этот аккаунт уже активирован",
"services.accountNotActivated": "Аккаунт не активирован",
"services.doYouWantRequestKey": "Не хотите отправить новый код?",
"services.emailFrequency": "Пожалуйста, успокойтесь, вы запрашиваете Email слишком часто. Новый ключ можно будет заказать {time}.",
"services.emailInvalid": "Указан неправильный Email",
"services.emailIsTempmail": "Использование сервисов временных Email адресов запрещено",
"services.emailNotAvailable": "На указанный Email адрес уже зарегистрирован аккаунт.",
"services.emailNotFound": "Не найдено аккаунта с указанным Email адресом",
"services.emailRequired": "Пожалуйста, укажите Email",
"services.emailToLong": "Email слишком длинный",
"services.forgotYourPassword": "забыли свой пароль",

View File

@ -26,5 +26,7 @@
"doYouWantRequestKey": "Do you want to request a new key?",
"emailFrequency": "Please cool down, you are requesting Emails too often. New key can be retrieved {time}.",
"accountNotActivated": "The account is not activated",
"oldHashStrategy": "Sorry, but your account's password is too old. Please change your password in order to perform this action."
"oldHashStrategy": "Sorry, but your account's password is too old. Please change your password in order to perform this action.",
"emailNotFound": "Specified Email is not found",
"accountAlreadyActivated": "This account is already activated"
}

View File

@ -73,6 +73,9 @@ const errorsMap = {
time: <Relative value={props.msLeft} updateInterval={1000} />
}} />,
'error.email_not_found': () => <Message {...messages.emailNotFound} />,
'error.account_already_activated': () => <Message {...messages.accountAlreadyActivated} />,
suggestResetPassword: () => (
<span>
<br/>