From ce1a1fc90ed65c1bfc79ad03529862b6f22aacee Mon Sep 17 00:00:00 2001 From: Roshanjossey Date: Sun, 14 Jan 2024 10:13:01 +0100 Subject: [PATCH] fix: add email type attribute to email input fields --- features/auth/login/LoginForm.tsx | 2 ++ features/auth/password/ResetPassword.tsx | 2 ++ 2 files changed, 4 insertions(+) diff --git a/features/auth/login/LoginForm.tsx b/features/auth/login/LoginForm.tsx index 23b5fea3..66ac71be 100644 --- a/features/auth/login/LoginForm.tsx +++ b/features/auth/login/LoginForm.tsx @@ -104,6 +104,8 @@ export default function LoginForm() { inputRef={register({ required: true })} name="username" variant="standard" + type="email" + autocomplete="username" /> {!loginWithLink && ( <> diff --git a/features/auth/password/ResetPassword.tsx b/features/auth/password/ResetPassword.tsx index 1df71e58..2b306ad2 100644 --- a/features/auth/password/ResetPassword.tsx +++ b/features/auth/password/ResetPassword.tsx @@ -62,6 +62,8 @@ export default function ResetPassword() { label={t("auth:reset_password_form.enter_email")} name="userId" variant="standard" + type="email" + autocomplete="username" fullWidth />