Skip to content

Commit

Permalink
fix: Add autocomplete for login (#4103)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyle-ssg authored Jun 4, 2024
1 parent d18cfe8 commit 5ffdd51
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/web/components/base/forms/Input.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,9 @@ const Input = class extends React.Component {
value={this.props.value}
className={innerClassName}
disabled={disabled}
autoComplete={'one-time-code'}
autoComplete={
this.props.enableAutoComplete ? undefined : 'one-time-code'
}
/>
)}
{this.props.type === 'password' && (
Expand Down
2 changes: 2 additions & 0 deletions frontend/web/components/pages/HomePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,7 @@ const HomePage = class extends React.Component {
<InputGroup
title='Password'
inputProps={{
enableAutoComplete: true,
className: 'full-width',
error: error && error.password,
name: 'password',
Expand Down Expand Up @@ -569,6 +570,7 @@ const HomePage = class extends React.Component {
data-test='email'
inputProps={{
className: 'full-width',
enableAutoComplete: true,
error: error && error.email,
name: 'email',
}}
Expand Down

0 comments on commit 5ffdd51

Please sign in to comment.