mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-12-29 16:30:54 +05:30
#148: remove depreacted error.password_required
This commit is contained in:
parent
75c90d9250
commit
5fdb662934
@ -22,8 +22,8 @@ const errorsMap = {
|
||||
'error.login_not_exist': () => <Message {...messages.loginNotExist} />,
|
||||
'error.password_required': () => <Message {...messages.passwordRequired} />,
|
||||
|
||||
'error.password_invalid': () => <Message {...messages.invalidPassword} />,
|
||||
'error.password_incorrect': (props) => (
|
||||
'error.password_incorrect': (props = {}) => (
|
||||
// props are handled in validationErrorsHandler in components/auth/actions
|
||||
<span>
|
||||
<Message {...messages.invalidPassword} />
|
||||
{props.isGuest ? errorsMap.suggestResetPassword() : null}
|
||||
@ -40,7 +40,8 @@ const errorsMap = {
|
||||
'error.email_too_long': () => <Message {...messages.emailToLong} />,
|
||||
'error.email_invalid': () => <Message {...messages.emailInvalid} />,
|
||||
'error.email_is_tempmail': () => <Message {...messages.emailIsTempmail} />,
|
||||
'error.email_not_available': (props) => (
|
||||
'error.email_not_available': (props = {}) => (
|
||||
// props are handled in validationErrorsHandler in components/auth/actions
|
||||
<span>
|
||||
<Message {...messages.emailNotAvailable} />
|
||||
{props.isGuest ? errorsMap.suggestResetPassword() : null}
|
||||
|
Loading…
Reference in New Issue
Block a user