require organization

This commit is contained in:
Max Peintner
2025-06-11 14:09:56 +02:00
parent 41170310dc
commit 3e777662e6
2 changed files with 3 additions and 3 deletions

View File

@@ -33,7 +33,7 @@ export default async function Page(props: {
} }
} }
const missingData = !firstname || !lastname || !email; const missingData = !firstname || !lastname || !email || !organization;
const legal = await getLegalAndSupportSettings({ const legal = await getLegalAndSupportSettings({
serviceUrl, serviceUrl,
@@ -73,7 +73,7 @@ export default async function Page(props: {
email={email} email={email}
firstname={firstname} firstname={firstname}
lastname={lastname} lastname={lastname}
organization={organization} organization={organization as string} // organization is guaranteed to be a string here otherwise we would have returned earlier
requestId={requestId} requestId={requestId}
></SetRegisterPasswordForm> ></SetRegisterPasswordForm>
)} )}

View File

@@ -31,7 +31,7 @@ type Props = {
email: string; email: string;
firstname: string; firstname: string;
lastname: string; lastname: string;
organization?: string; organization: string;
requestId?: string; requestId?: string;
}; };