diff --git a/src/app/(site)/login/page.tsx b/src/app/(site)/login/page.tsx index 95b61337..101f1952 100644 --- a/src/app/(site)/login/page.tsx +++ b/src/app/(site)/login/page.tsx @@ -1,15 +1,15 @@ import { desc, eq } from "drizzle-orm"; import type { Metadata } from "next"; import { headers } from "next/headers"; -import Image from "next/image"; import { redirect } from "next/navigation"; import { getTranslations } from "next-intl/server"; +import { AuthAlert } from "@/components/auth/auth-alert"; import { AuthPageFrame, AuthUsersCards, } from "@/components/auth/auth-page-frame"; +import { AuthPromoCard } from "@/components/auth/auth-promo-card"; import { LoginForm } from "@/components/auth/login-form"; -import { SurfaceCard } from "@/components/surface-card"; import { auth } from "@/lib/auth"; import { safeRedirectPath } from "@/lib/auth/safe-redirect"; import { cached } from "@/lib/cache"; @@ -90,22 +90,16 @@ export default async function LoginPage({ // exists. const notice = sp.registered === "1" ? ( -

+ {t("registeredSuccess")} -

+ ) : sp.reset === "1" ? ( // `?reset=1` comes from a successful password reset; saying so matters // because the visitor just changed their password and a silent form // reads like the reset failed. -

+ {t("passwordChanged")} -

+ ) : undefined; return ( @@ -127,89 +121,11 @@ export default async function LoginPage({ /> } > - -
-