Skip to content

The Open Source DocuSign Alternative.

feat: add autocomplete for password managers

nsylke44f59b07c5ab
diff --git a/apps/web/src/components/forms/password.tsx b/apps/web/src/components/forms/password.tsx
index 73837868f..0760fa145 100644
--- a/apps/web/src/components/forms/password.tsx
+++ b/apps/web/src/components/forms/password.tsx
@@ -98,6 +98,7 @@ export const PasswordForm = ({ className }: PasswordFormProps) => {
type="password"
minLength={6}
maxLength={72}
+ autoComplete="new-password"
className="bg-background mt-2"
{...register('password')}
/>
@@ -115,6 +116,7 @@ export const PasswordForm = ({ className }: PasswordFormProps) => {
type="password"
minLength={6}
maxLength={72}
+ autoComplete="new-password"
className="bg-background mt-2"
{...register('repeatedPassword')}
/>
diff --git a/apps/web/src/components/forms/signin.tsx b/apps/web/src/components/forms/signin.tsx
index 34b13bb2c..5062515c8 100644
--- a/apps/web/src/components/forms/signin.tsx
+++ b/apps/web/src/components/forms/signin.tsx
@@ -104,6 +104,7 @@ export const SignInForm = ({ className }: SignInFormProps) => {
type="password"
minLength={6}
maxLength={72}
+ autoComplete="current-password"
className="bg-background mt-2"
{...register('password')}
/>
diff --git a/apps/web/src/components/forms/signup.tsx b/apps/web/src/components/forms/signup.tsx
index 0b61bb967..25e1293c0 100644
--- a/apps/web/src/components/forms/signup.tsx
+++ b/apps/web/src/components/forms/signup.tsx
@@ -110,6 +110,7 @@ export const SignUpForm = ({ className }: SignUpFormProps) => {
type="password"
minLength={6}
maxLength={72}
+ autoComplete="new-password"
className="bg-background mt-2"
{...register('password')}
/>