fix: add auto complete information to auth forms

This commit is contained in:
Stavros
2025-07-16 01:29:07 +03:00
parent 2d4ceda12f
commit af26d705cd
2 changed files with 8 additions and 1 deletions

View File

@@ -45,6 +45,7 @@ export const LoginForm = (props: Props) => {
<Input
placeholder={t("loginUsername")}
disabled={loading}
autoComplete="username"
{...field}
/>
</FormControl>
@@ -64,6 +65,7 @@ export const LoginForm = (props: Props) => {
placeholder={t("loginPassword")}
type="password"
disabled={loading}
autoComplete="current-password"
{...field}
/>
</FormControl>

View File

@@ -39,7 +39,12 @@ export const TotpForm = (props: Props) => {
render={({ field }) => (
<FormItem>
<FormControl>
<InputOTP maxLength={6} disabled={loading} {...field}>
<InputOTP
maxLength={6}
disabled={loading}
{...field}
autoComplete="one-time-code"
>
<InputOTPGroup>
<InputOTPSlot index={0} />
<InputOTPSlot index={1} />