mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 22:33:34 +00:00
30 lines
730 B
TypeScript
30 lines
730 B
TypeScript
import {
|
|
getLegalAndSupportSettings,
|
|
getPasswordComplexitySettings,
|
|
server,
|
|
} from "#/lib/zitadel";
|
|
import RegisterForm from "#/ui/RegisterForm";
|
|
|
|
export default async function Page() {
|
|
const legal = await getLegalAndSupportSettings(server);
|
|
const passwordComplexitySettings = await getPasswordComplexitySettings(
|
|
server
|
|
);
|
|
|
|
console.log(legal);
|
|
|
|
return (
|
|
<div className="flex flex-col items-center space-y-4">
|
|
<h1>Register</h1>
|
|
<p className="ztdl-p">Create your ZITADEL account.</p>
|
|
|
|
{legal && passwordComplexitySettings && (
|
|
<RegisterForm
|
|
legal={legal}
|
|
passwordComplexityPolicy={passwordComplexitySettings}
|
|
></RegisterForm>
|
|
)}
|
|
</div>
|
|
);
|
|
}
|