feat: turn auto-complete off (#605)

Turned auto-complete off for:
- username and password field on registration form.
- username field on login form

VAN-1028
This commit is contained in:
Zainab Amir
2022-08-03 16:15:35 +05:00
committed by GitHub
parent 028e0b0dfc
commit 3541c66637
3 changed files with 3 additions and 1 deletions

View File

@@ -70,6 +70,7 @@ const PasswordField = (props) => {
controlClassName={props.borderClass}
trailingElement={isPasswordHidden ? ShowButton : HideButton}
floatingLabel={props.floatingLabel}
autoComplete="off"
/>
</OverlayTrigger>
{props.errorMessage !== '' && (

View File

@@ -255,6 +255,7 @@ class LoginPage extends React.Component {
handleBlur={this.handleOnBlur}
errorMessage={this.state.errors.emailOrUsername}
floatingLabel={intl.formatMessage(messages['login.user.identity.label'])}
autoComplete="off"
/>
<PasswordField
name="password"

View File

@@ -792,7 +792,7 @@ class RegistrationPage extends React.Component {
<UsernameField
name="username"
autoComplete="false"
autoComplete="off"
spellCheck="false"
value={this.state.username}
handleBlur={this.handleOnBlur}