Skip to content

Commit 0a2075e

Browse files
committed
Add autocomplete for password form fields
1 parent 041893b commit 0a2075e

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

src/pages/login.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,14 +96,14 @@ const LoginPage: NextPageWithLayout = () => {
9696
/>
9797
<FullWidthTextField
9898
required
99+
autoComplete="off"
99100
type="password"
100101
id="password"
101102
name="password"
102103
label="Password"
103104
placeholder="Enter password"
104105
/>
105106
<ControlWrapper>
106-
{/*TODO: Implement remember me feature*/}
107107
<LabelCheckbox
108108
name="remember"
109109
label="Remember me"

src/pages/password-reset/[token].tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ const ResetPasswordPage: NextPageWithLayout = () => {
8080
/>
8181
<FullWidthTextField
8282
required
83+
autoComplete="off"
8384
type="password"
8485
id="password"
8586
name="password"
@@ -88,6 +89,7 @@ const ResetPasswordPage: NextPageWithLayout = () => {
8889
/>
8990
<FullWidthTextField
9091
required
92+
autoComplete="off"
9193
type="password"
9294
id="passwordConfirmation"
9395
name="passwordConfirmation"

src/pages/register.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ const RegisterPage: NextPageWithLayout = () => {
8989
/>
9090
<FullWidthTextField
9191
required
92+
autoComplete="off"
9293
type="password"
9394
id="password"
9495
name="password"
@@ -97,6 +98,7 @@ const RegisterPage: NextPageWithLayout = () => {
9798
/>
9899
<FullWidthTextField
99100
required
101+
autoComplete="off"
100102
type="password"
101103
id="passwordConfirmation"
102104
name="passwordConfirmation"

0 commit comments

Comments
 (0)