diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-03-08 10:51:41 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-03-08 10:51:41 +0900 |
| commit | a7ce31249948e4f0c1950de93f3c4f7cdda51cf4 (patch) | |
| tree | c4c740f0cccd15f825596f7a115f3b8f8eb8ffa7 /frontend/app/routes/login.tsx | |
| parent | 7f4d16dca85263dcbc7b3bb29f5fc50f4371739d (diff) | |
| parent | c06d46eae30c9468535fb6af5e9b822acadbbdb6 (diff) | |
| download | phperkaigi-2025-albatross-a7ce31249948e4f0c1950de93f3c4f7cdda51cf4.tar.gz phperkaigi-2025-albatross-a7ce31249948e4f0c1950de93f3c4f7cdda51cf4.tar.zst phperkaigi-2025-albatross-a7ce31249948e4f0c1950de93f3c4f7cdda51cf4.zip | |
Merge branch 'phperkaigi-2025'
Diffstat (limited to 'frontend/app/routes/login.tsx')
| -rw-r--r-- | frontend/app/routes/login.tsx | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/frontend/app/routes/login.tsx b/frontend/app/routes/login.tsx index b1249e0..5ca6217 100644 --- a/frontend/app/routes/login.tsx +++ b/frontend/app/routes/login.tsx @@ -3,14 +3,14 @@ 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"; import SubmitButton from "../components/SubmitButton"; export const meta: MetaFunction = () => [ - { title: "Login | iOSDC Japan 2024 Albatross.swift" }, + { title: "Login | PHPerKaigi 2025 Albatross" }, ]; export async function loader({ request }: LoaderFunctionArgs) { @@ -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<typeof action>(); return ( @@ -77,7 +73,7 @@ export default function Login() { のアカウントをお持ちでない場合は、イベントスタッフにお声がけください。 </p> {loginErrors?.message && ( - <p className="text-red-500 text-sm mb-4">{loginErrors.message}</p> + <p className="text-sky-500 text-sm mb-4">{loginErrors.message}</p> )} <div className="mb-4 flex flex-col gap-1"> <label @@ -113,11 +109,6 @@ export default function Login() { </p> )} </div> - <input - type="hidden" - name="registration_token" - value={registrationToken ?? ""} - /> <div className="flex justify-center"> <SubmitButton type="submit">ログイン</SubmitButton> </div> |
