fix(auth): normalize autocomplete tokens for login and register (#2714)

Co-authored-by: Amruth Pillai <im.amruth@gmail.com>
This commit is contained in:
Yeung
2026-02-24 04:07:50 +08:00
committed by GitHub
parent b6c274eeb6
commit 2d1e13b9b5
2 changed files with 11 additions and 6 deletions
+7 -2
View File
@@ -113,7 +113,12 @@ function RouteComponent() {
<Trans>Email Address</Trans>
</FormLabel>
<FormControl>
<Input autoComplete="email" placeholder="john.doe@example.com" className="lowercase" {...field} />
<Input
autoComplete="section-login username"
placeholder="john.doe@example.com"
className="lowercase"
{...field}
/>
</FormControl>
<FormMessage />
<FormDescription>
@@ -145,7 +150,7 @@ function RouteComponent() {
min={6}
max={64}
type={showPassword ? "text" : "password"}
autoComplete="current-password"
autoComplete="section-login current-password"
{...field}
/>
</FormControl>
+4 -4
View File
@@ -110,7 +110,7 @@ function RouteComponent() {
<Trans>Name</Trans>
</FormLabel>
<FormControl>
<Input min={3} max={64} autoComplete="name" placeholder="John Doe" {...field} />
<Input min={3} max={64} autoComplete="section-register name" placeholder="John Doe" {...field} />
</FormControl>
<FormMessage />
</FormItem>
@@ -129,7 +129,7 @@ function RouteComponent() {
<Input
min={3}
max={64}
autoComplete="username"
autoComplete="section-register username"
placeholder="john.doe"
className="lowercase"
{...field}
@@ -151,7 +151,7 @@ function RouteComponent() {
<FormControl>
<Input
type="email"
autoComplete="email"
autoComplete="section-register email"
placeholder="john.doe@example.com"
className="lowercase"
{...field}
@@ -176,7 +176,7 @@ function RouteComponent() {
min={6}
max={64}
type={showPassword ? "text" : "password"}
autoComplete="new-password"
autoComplete="section-register new-password"
{...field}
/>
</FormControl>