feat: add autocomplete for password managers

This commit is contained in:
nsylke
2023-08-26 10:22:44 -05:00
parent f8bf4fea36
commit 7ad3365b0e
3 changed files with 4 additions and 0 deletions

View File

@@ -94,6 +94,7 @@ export const PasswordForm = ({ className }: PasswordFormProps) => {
type="password" type="password"
minLength={6} minLength={6}
maxLength={72} maxLength={72}
autoComplete="new-password"
className="bg-background mt-2" className="bg-background mt-2"
{...register('password')} {...register('password')}
/> />
@@ -111,6 +112,7 @@ export const PasswordForm = ({ className }: PasswordFormProps) => {
type="password" type="password"
minLength={6} minLength={6}
maxLength={72} maxLength={72}
autoComplete="new-password"
className="bg-background mt-2" className="bg-background mt-2"
{...register('repeatedPassword')} {...register('repeatedPassword')}
/> />

View File

@@ -101,6 +101,7 @@ export const SignInForm = ({ className }: SignInFormProps) => {
type="password" type="password"
minLength={6} minLength={6}
maxLength={72} maxLength={72}
autoComplete="current-password"
className="bg-background mt-2" className="bg-background mt-2"
{...register('password')} {...register('password')}
/> />

View File

@@ -107,6 +107,7 @@ export const SignUpForm = ({ className }: SignUpFormProps) => {
type="password" type="password"
minLength={6} minLength={6}
maxLength={72} maxLength={72}
autoComplete="new-password"
className="bg-background mt-2" className="bg-background mt-2"
{...register('password')} {...register('password')}
/> />