From f926ef682de637b717d3b0cc0eaee43c59e83c95 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 17 Aug 2024 18:59:55 +0900 Subject: feat(backend): allow login/signup with email address --- frontend/app/routes/login.tsx | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'frontend/app') diff --git a/frontend/app/routes/login.tsx b/frontend/app/routes/login.tsx index 6d76e84..b1249e0 100644 --- a/frontend/app/routes/login.tsx +++ b/frontend/app/routes/login.tsx @@ -35,18 +35,6 @@ export async function action({ request }: ActionFunctionArgs) { { status: 400 }, ); } - if (username.includes("@")) { - return json( - { - message: "ユーザー名が誤っています", - errors: { - username: "メールアドレスではなくユーザー名を入力してください", - password: undefined, - }, - }, - { status: 400 }, - ); - } try { await login(request); -- cgit v1.2.3-70-g09d2