aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/app
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/app')
-rw-r--r--frontend/app/routes/login.tsx12
1 files changed, 12 insertions, 0 deletions
diff --git a/frontend/app/routes/login.tsx b/frontend/app/routes/login.tsx
index b1249e0..6d76e84 100644
--- a/frontend/app/routes/login.tsx
+++ b/frontend/app/routes/login.tsx
@@ -35,6 +35,18 @@ export async function action({ request }: ActionFunctionArgs) {
{ status: 400 },
);
}
+ if (username.includes("@")) {
+ return json(
+ {
+ message: "ユーザー名が誤っています",
+ errors: {
+ username: "メールアドレスではなくユーザー名を入力してください",
+ password: undefined,
+ },
+ },
+ { status: 400 },
+ );
+ }
try {
await login(request);