Skip to content

Commit

Permalink
feat: add autocomplete attribute for login page inputs (refinedev#5269)
Browse files Browse the repository at this point in the history
  • Loading branch information
BatuhanW authored Dec 4, 2023
1 parent 7c8827b commit a23a094
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .changeset/hungry-beers-tickle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@refinedev/antd": patch
"@refinedev/chakra-ui": patch
"@refinedev/mantine": patch
---

feat: add "autoComplete" field for Login pages.
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ dist/
node_modules/
.snapshots/
*.min.js
packages/**/coverage/
packages/**/coverage/
CHANGELOG.md
2 changes: 1 addition & 1 deletion SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ currently being supported with security updates.

| Version | Supported |
| ------- | ------------------ |
| > 4.x.x | :white_check_mark: |
| > 4.x.x | :white_check_mark: |

## Reporting a Vulnerability

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ export const LoginPage: React.FC<LoginProps> = ({
>
<Input
type="password"
autoComplete="current-password"
placeholder="●●●●●●●●"
size="large"
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ export const LoginPage: React.FC<LoginProps> = ({
</FormLabel>
<Input
id="email"
autoComplete="current-password"
placeholder="Email"
type="text"
{...register("email", {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ export const LoginPage: React.FC<LoginProps> = ({
/>
<PasswordInput
name="password"
autoComplete="current-password"
mt="md"
label={translate(
"pages.login.fields.password",
Expand Down

0 comments on commit a23a094

Please sign in to comment.