Skip to content

Commit

Permalink
fix Login/Register autoComplete (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
chennisden authored Jun 13, 2024
1 parent 9802bcf commit 1c4a6cf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frontend/src/pages/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ const Login = () => {
<label htmlFor="email">Email</label>
<Form.Control
id="email"
autoComplete="username"
className="mb-3"
type="text"
onChange={(e) => {
Expand All @@ -42,6 +43,7 @@ const Login = () => {
<label htmlFor="password">Password</label>
<Form.Control
id="password"
autoComplete="current-password"
className="mb-3"
type="password"
onChange={(e) => {
Expand Down
3 changes: 3 additions & 0 deletions frontend/src/pages/Register.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ const Register = () => {
<label htmlFor="email">Email</label>
<Form.Control
id="email"
autoComplete="email"
className="mb-3"
type="text"
onChange={(e) => {
Expand All @@ -48,6 +49,7 @@ const Register = () => {
<label htmlFor="username">Username</label>
<Form.Control
id="username"
autoComplete="username"
className="mb-3"
type="text"
onChange={(e) => {
Expand All @@ -59,6 +61,7 @@ const Register = () => {
<label htmlFor="password">Password</label>
<Form.Control
id="password"
autoComplete="new-password"
className="mb-3"
type="password"
onChange={(e) => {
Expand Down

0 comments on commit 1c4a6cf

Please sign in to comment.