From e81817693eb6c2ae1008be9c3d56a1ec39ce057c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20Rafael=20Siqueira?= Date: Wed, 26 Nov 2025 15:19:29 -0300 Subject: [PATCH] fix status number --- apps/id.saladeaula.digital/app/routes/index.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/apps/id.saladeaula.digital/app/routes/index.tsx b/apps/id.saladeaula.digital/app/routes/index.tsx index b59b088..9211446 100644 --- a/apps/id.saladeaula.digital/app/routes/index.tsx +++ b/apps/id.saladeaula.digital/app/routes/index.tsx @@ -21,7 +21,6 @@ import { } from '@repo/ui/components/ui/form' import { Input } from '@repo/ui/components/ui/input' import { Label } from '@repo/ui/components/ui/label' -import { FOUND, INTERNAL_SERVER_ERROR, OK } from './authorize' const schema = z.object({ username: z @@ -60,7 +59,7 @@ export async function action({ request, context }: Route.ActionArgs) { body: JSON.stringify(formData) }) - if (r.status !== OK) { + if (r.status === 200) { return Response.json(await r.json(), { status: r.status, headers: r.headers @@ -74,7 +73,7 @@ export async function action({ request, context }: Route.ActionArgs) { headers.set('Location', url.toString()) return new Response(await r.text(), { - status: FOUND, + status: 302, headers }) } catch (error) {