From 6d9419b47618c716ddfb1df2960163eeaa3bf179 Mon Sep 17 00:00:00 2001 From: prathameshkurunkar7 Date: Mon, 19 Feb 2024 18:38:09 +0530 Subject: [PATCH] RAV-72 Allow login via username [#677] --- raven-app/src/pages/auth/Login.tsx | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/raven-app/src/pages/auth/Login.tsx b/raven-app/src/pages/auth/Login.tsx index 715906b1c..7d40c839c 100644 --- a/raven-app/src/pages/auth/Login.tsx +++ b/raven-app/src/pages/auth/Login.tsx @@ -47,25 +47,22 @@ export const Component = () => { {error && {error.message} } - {/* */} - +
- + isEmailValid(email) || "Please enter a valid email address.", - required: "Email is required." + required: "Email or Username is required." })} name="email" type="text" - // autoComplete="email" required - placeholder="e.g. example@gmail.com" + placeholder="jane@example.com" tabIndex={0} /> {errors?.email && {errors?.email?.message}}