From 24bc4ecf8c6d63574e7baaaf6ab2ff5d98445d1b Mon Sep 17 00:00:00 2001 From: Neilson Soult Date: Thu, 3 Sep 2026 12:23:28 +0200 Subject: [PATCH] fix(web): restore password-manager autofill on auth forms via autocomplete tokens --- apps/web/core/components/account/auth-forms/email.tsx | 2 +- apps/web/core/components/account/auth-forms/password.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/web/core/components/account/auth-forms/email.tsx b/apps/web/core/components/account/auth-forms/email.tsx index 7bf76ca0ef2..5dc9e0d46e7 100644 --- a/apps/web/core/components/account/auth-forms/email.tsx +++ b/apps/web/core/components/account/auth-forms/email.tsx @@ -74,7 +74,7 @@ export const AuthEmailForm = observer(function AuthEmailForm(props: TAuthEmailFo value={email} onChange={(e) => setEmail(e.target.value)} placeholder={t("auth.common.email.placeholder")} - autoComplete="off" + autoComplete="username" autoFocus ref={inputRef} /> diff --git a/apps/web/core/components/account/auth-forms/password.tsx b/apps/web/core/components/account/auth-forms/password.tsx index c98ffff3410..4543e46063a 100644 --- a/apps/web/core/components/account/auth-forms/password.tsx +++ b/apps/web/core/components/account/auth-forms/password.tsx @@ -213,7 +213,7 @@ export const AuthPasswordForm = observer(function AuthPasswordForm(props: Props) placeholder={t("auth.common.password.placeholder")} onFocus={() => setIsPasswordInputFocused(true)} onBlur={() => setIsPasswordInputFocused(false)} - autoComplete="off" + autoComplete={mode === EAuthModes.SIGN_IN ? "current-password" : "new-password"} autoFocus />