Accounts 1.0.0 frontend and @crosscode/ui
Sign-in steps (password, sign-up, email code, two-step sign-in and its setup with recovery codes, privacy notice, news question), forgot and reset password, the account page, admin (people, deletions, church profile, linked products, settings, notice, licence, audit) and setup. Strict CSP with a nonce per page; church colours from the profile. @crosscode/ui gets its first components (shell, card, fields, buttons). Plan: roles stay in each product (asked 2026-11-18). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import { redirect } from "next/navigation";
|
||||
import { SignIn } from "./SignIn";
|
||||
|
||||
export const metadata = { title: "Sign in" };
|
||||
|
||||
// /signin?uid=… is a sign-in a product started; without one, sign in to the account page.
|
||||
export default async function SignInPage({ searchParams }: { searchParams: Promise<{ uid?: string }> }) {
|
||||
const { uid } = await searchParams;
|
||||
if (!uid || !/^[A-Za-z0-9_-]{10,64}$/.test(uid)) redirect("/api/self/signin?returnTo=%2Faccount");
|
||||
return <SignIn uid={uid} />;
|
||||
}
|
||||
Reference in New Issue
Block a user