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

View File

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