Skip to content

Commit

Permalink
Login: add autocomplete support for username/password (#13)
Browse files Browse the repository at this point in the history
Thank you luclu7
  • Loading branch information
luclu7 authored Jan 11, 2024
1 parent 5a5c06b commit 594eb94
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions client/src/components/InputIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export const InputIcon = ({ ...props }: InputIconProps) => {
<InputGeneric
type={props.type}
value={props.value}
autoComplete={props.autoComplete}
placeholder={props.placeholder}
onChange={props.onChange}
onKeyUp={props.onKeyUp}
Expand Down
2 changes: 2 additions & 0 deletions client/src/components/LoginBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,15 @@ export const LoginBlock = ({ onLogin }: LoginBlockProps) => {
icon={"user"}
value={login}
placeholder={intl.formatMessage({ id: "User" })}
autoComplete="username"
onChange={setLogin}
/>

<InputIcon
icon={"key"}
type="password"
value={password}
autoComplete="password"
placeholder={intl.formatMessage({ id: "Password" })}
onChange={setPassword}
onKeyUp={(key: string) => {
Expand Down

0 comments on commit 594eb94

Please sign in to comment.