Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
_validatePassword(password) {
return new RegExp(ValidationUtil.getNewPasswordPattern(this.minPasswordLength)).test(password);
}
data-uie-name="enter-email"
/>
<input name="password">) => {
inputs.password.current.setCustomValidity('');
setRegistrationData({...registrationData, password: event.target.value});
setValidInputs({...validInputs, password: true});
}}
ref={inputs.password}
markInvalid={!validInputs.password}
value={registrationData.password}
autoComplete="section-create-team new-password"
type="password"
placeholder={_(accountFormStrings.passwordPlaceholder)}
pattern={ValidationUtil.getNewPasswordPattern(Config.NEW_PASSWORD_MINIMUM_LENGTH)}
required
data-uie-name="enter-password"
/>
<small data-uie-name="element-password-help" style="{{">
{_(accountFormStrings.passwordHelp, {minPasswordLength: Config.NEW_PASSWORD_MINIMUM_LENGTH})}
</small>
{parseError(props.authError)}
<div data-uie-name="error-message">{parseValidationErrors(validationErrors)}</div>