|
@@ -231,6 +231,7 @@ export const LoginForm = (props: LoginFormProps): JSX.Element => {
|
|
|
placeholder="Password"
|
|
placeholder="Password"
|
|
|
onChange={(e) => { setPasswordForLogin(e.target.value) }}
|
|
onChange={(e) => { setPasswordForLogin(e.target.value) }}
|
|
|
name="passwordForLogin"
|
|
name="passwordForLogin"
|
|
|
|
|
+ minLength={minPasswordLength}
|
|
|
/>
|
|
/>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
@@ -255,15 +256,8 @@ export const LoginForm = (props: LoginFormProps): JSX.Element => {
|
|
|
</>
|
|
</>
|
|
|
);
|
|
);
|
|
|
}, [
|
|
}, [
|
|
|
- props,
|
|
|
|
|
- separateErrorsBasedOnErrorCode,
|
|
|
|
|
- loginErrors,
|
|
|
|
|
- generateDangerouslySetErrors,
|
|
|
|
|
- generateSafelySetErrors,
|
|
|
|
|
- isLdapSetupFailed,
|
|
|
|
|
- t,
|
|
|
|
|
- handleLoginWithLocalSubmit,
|
|
|
|
|
- isLoading,
|
|
|
|
|
|
|
+ props, separateErrorsBasedOnErrorCode, loginErrors, generateDangerouslySetErrors, generateSafelySetErrors,
|
|
|
|
|
+ isLdapSetupFailed, t, handleLoginWithLocalSubmit, minPasswordLength, isLoading,
|
|
|
]);
|
|
]);
|
|
|
|
|
|
|
|
|
|
|
|
@@ -457,13 +451,13 @@ export const LoginForm = (props: LoginFormProps): JSX.Element => {
|
|
|
</span>
|
|
</span>
|
|
|
{/* Password */}
|
|
{/* Password */}
|
|
|
<input
|
|
<input
|
|
|
- minLength={minPasswordLength}
|
|
|
|
|
type="password"
|
|
type="password"
|
|
|
className="form-control rounded ms-2"
|
|
className="form-control rounded ms-2"
|
|
|
onChange={(e) => { setPasswordForRegister(e.target.value) }}
|
|
onChange={(e) => { setPasswordForRegister(e.target.value) }}
|
|
|
placeholder={t('Password')}
|
|
placeholder={t('Password')}
|
|
|
name="password"
|
|
name="password"
|
|
|
required
|
|
required
|
|
|
|
|
+ minLength={minPasswordLength}
|
|
|
/>
|
|
/>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -505,7 +499,8 @@ export const LoginForm = (props: LoginFormProps): JSX.Element => {
|
|
|
);
|
|
);
|
|
|
}, [
|
|
}, [
|
|
|
t, isEmailAuthenticationEnabled, registrationMode, isMailerSetup, registerErrors, isSuccessToRagistration, emailForRegistrationOrder,
|
|
t, isEmailAuthenticationEnabled, registrationMode, isMailerSetup, registerErrors, isSuccessToRagistration, emailForRegistrationOrder,
|
|
|
- props.username, props.name, props.email, registrationWhitelist, isLoading, switchForm, tWithOpt, handleRegisterFormSubmit]);
|
|
|
|
|
|
|
+ props.username, props.name, props.email, registrationWhitelist, minPasswordLength, isLoading, switchForm, tWithOpt, handleRegisterFormSubmit,
|
|
|
|
|
+ ]);
|
|
|
|
|
|
|
|
if (registrationMode === RegistrationMode.RESTRICTED && isSuccessToRagistration && !isEmailAuthenticationEnabled) {
|
|
if (registrationMode === RegistrationMode.RESTRICTED && isSuccessToRagistration && !isEmailAuthenticationEnabled) {
|
|
|
return <CompleteUserRegistration />;
|
|
return <CompleteUserRegistration />;
|