diff --git a/src/components/auth/activation/activation.scss b/src/components/auth/activation/activation.scss index 22a4895..655c25f 100644 --- a/src/components/auth/activation/activation.scss +++ b/src/components/auth/activation/activation.scss @@ -19,6 +19,7 @@ } .activationCodeInput { + composes: darkTextField from 'components/ui/form/form.scss'; composes: blueTextField from 'components/ui/form/form.scss'; text-align: center; diff --git a/src/services/errorsDict.js b/src/services/errorsDict.js index f02a5ee..620a9cd 100644 --- a/src/services/errorsDict.js +++ b/src/services/errorsDict.js @@ -31,11 +31,15 @@ const errorsMap = { ), 'error.username_required': () => , + 'error.username_invalid': () => , + 'error.username_too_short': () => , + 'error.username_too_long': () => , 'error.username_not_available': () => , + 'error.email_required': () => , + 'error.email_too_long': () => , 'error.email_invalid': () => , 'error.email_is_tempmail': () => , - 'error.email_not_available': () => ( diff --git a/src/services/errorsDict.messages.js b/src/services/errorsDict.messages.js index 0bea008..c4afaeb 100644 --- a/src/services/errorsDict.messages.js +++ b/src/services/errorsDict.messages.js @@ -46,6 +46,21 @@ export default defineMessages({ defaultMessage: 'Username is required' }, + usernameInvalid: { + id: 'usernameInvalid', + defaultMessage: 'Username is invalid' + }, + + usernameTooShort: { + id: 'usernameTooShort', + defaultMessage: 'Username is too short' + }, + + usernameTooLong: { + id: 'usernameTooLong', + defaultMessage: 'Username is too long' + }, + usernameUnavailable: { id: 'usernameUnavailable', defaultMessage: 'This username is already taken' @@ -61,6 +76,11 @@ export default defineMessages({ defaultMessage: 'Email is invalid' }, + emailToLong: { + id: 'emailToLong', + defaultMessage: 'Email is too long' + }, + emailIsTempmail: { id: 'emailIsTempmail', defaultMessage: 'Tempmail E-mail addresses is not allowed'