mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2025-10-28 20:55:42 +00:00
fix: add auto complete information to auth forms
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
@@ -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} />
|
||||||
|
|||||||
Reference in New Issue
Block a user