@@ -50,8 +50,10 @@ const EmailInputForm = ({ value, onValidateEmail, onHandleUserNameChange, disabl
5050 autoFocus = { true }
5151 onChange = { onHandleUserNameChange }
5252 error = { emailError != "" }
53- helperText = { emailError }
5453 />
54+ { emailError != "" &&
55+ < p className = { styles . error_label } dangerouslySetInnerHTML = { { __html : emailError } } > </ p >
56+ }
5557 { emailError == "" &&
5658 < Button variant = "contained"
5759 color = "primary"
@@ -85,7 +87,8 @@ const PasswordInputForm = ({
8587 forgotPasswordAction,
8688 loginAttempts,
8789 maxLoginFailedAttempts,
88- userIsActive
90+ userIsActive,
91+ helpAction
8992 } ) => {
9093 return (
9194 < form method = "post" action = { formAction } onSubmit = { onAuthenticate } target = "_self" >
@@ -148,7 +151,7 @@ const PasswordInputForm = ({
148151 return (
149152 < >
150153 < p className = { styles . error_label } >
151- Your account has been locked due to multiple failed login attempts. Please contact support to unlock it.
154+ Your account has been locked due to multiple failed login attempts. Please < a href = { helpAction } > contact support</ a > to unlock it.
152155 </ p >
153156 </ >
154157 ) ;
@@ -589,7 +592,7 @@ class LoginPage extends React.Component {
589592
590593 let error = '' ;
591594 if ( response . is_active === false ) {
592- error = ' Your user account is currently inactive . Please contact support for further assistance.' ;
595+ error = ` Your user account is currently locked . Please <a href=" ${ this . props . helpAction } "> contact support</a> for further assistance.` ;
593596 } else if ( response . is_active === true && response . is_verified === false ) {
594597 error = 'Your email has not been verified. Please check your inbox or resend the verification email.' ;
595598 }
@@ -820,6 +823,7 @@ class LoginPage extends React.Component {
820823 loginAttempts = { this . props ?. loginAttempts }
821824 maxLoginFailedAttempts = { this . props ?. maxLoginFailedAttempts }
822825 userIsActive = { this . props ?. user_is_active }
826+ helpAction = { this . props . helpAction }
823827 />
824828 < HelpLinks
825829 userName = { this . state . user_name }
0 commit comments