From efd34b970d0d1f88fa7d7e9d69e569f039867ca2 Mon Sep 17 00:00:00 2001
From: nsfisis
Date: Tue, 4 Mar 2025 23:39:26 +0900
Subject: rm registration token
---
frontend/app/routes/login.tsx | 11 +----------
1 file changed, 1 insertion(+), 10 deletions(-)
(limited to 'frontend/app/routes')
diff --git a/frontend/app/routes/login.tsx b/frontend/app/routes/login.tsx
index 223a3f5..5ca6217 100644
--- a/frontend/app/routes/login.tsx
+++ b/frontend/app/routes/login.tsx
@@ -3,7 +3,7 @@ import type {
LoaderFunctionArgs,
MetaFunction,
} from "@remix-run/node";
-import { Form, json, useActionData, useLocation } from "@remix-run/react";
+import { Form, json, useActionData } from "@remix-run/react";
import { ensureUserNotLoggedIn, login } from "../.server/auth";
import BorderedContainer from "../components/BorderedContainer";
import InputText from "../components/InputText";
@@ -58,10 +58,6 @@ export async function action({ request }: ActionFunctionArgs) {
}
export default function Login() {
- const location = useLocation();
- const searchParams = new URLSearchParams(location.search);
- const registrationToken = searchParams.get("registration_token");
-
const loginErrors = useActionData();
return (
@@ -113,11 +109,6 @@ export default function Login() {
)}
-
ログイン
--
cgit v1.2.3-70-g09d2