diff --git a/src/common-components/PasswordField.jsx b/src/common-components/PasswordField.jsx index 543d84cb92..7d7210c53f 100644 --- a/src/common-components/PasswordField.jsx +++ b/src/common-components/PasswordField.jsx @@ -138,7 +138,7 @@ const PasswordField = (props) => { {props.errorMessage !== '' && (
{formatMessage(messages['non.compliant.password.message'])}
@@ -47,7 +60,7 @@ const LoginFailureMessage = (props) => { break; } case FORBIDDEN_REQUEST: - errorList ={formatMessage(messages['login.rate.limit.reached.message'])}
; + errorMessage ={formatMessage(messages['login.rate.limit.reached.message'])}
; break; case INACTIVE_USER: { const supportLink = ( @@ -55,7 +68,7 @@ const LoginFailureMessage = (props) => { {formatMessage(messages['contact.support.link'], { platformName: context.platformName })} ); - errorList = ( + errorMessage = (
{formatMessage(messages['login.form.invalid.error.message'])} {formatMessage(messages['login.form.invalid.error.message'])}
{formatMessage(messages['account.locked.out.message.1'])}
@@ -141,9 +154,9 @@ const LoginFailureMessage = (props) => {
}
case INCORRECT_EMAIL_PASSWORD:
if (context.failureCount <= 1) {
- errorList = {formatMessage(messages['login.incorrect.credentials.error'])} {formatMessage(messages['login.incorrect.credentials.error'])}
{formatMessage(messages['login.tpa.authentication.failure'], {
- platform_name: getConfig().SITE_NAME,
- lineBreak:
+ {formatMessage(messages['login.tpa.authentication.failure'], {
+ platform_name: getConfig().SITE_NAME,
+ lineBreak: {formatMessage(messages['internal.server.error.message'])} {formatMessage(messages['internal.server.error.message'])}
,
- email: {props.loginError.email},
+ email: {context.email},
supportLink,
}}
/>
@@ -79,7 +92,7 @@ const LoginFailureMessage = (props) => {
{formatMessage(messages['tpa.account.link'], { provider: context.provider })}
);
- errorList = (
+ errorMessage = (
,
- errorMessage: context.errorMessage,
- })}
+ errorMessage = (
+
,
+ errorMessage: context.errorMessage,
+ })}