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({
serviceUrl,
@@ -73,7 +73,7 @@ export default async function Page(props: {
email={email}
firstname={firstname}
lastname={lastname}
organization={organization}
organization={organization as string} // organization is guaranteed to be a string here otherwise we would have returned earlier
requestId={requestId}
></SetRegisterPasswordForm>
)}

View File

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