2023-04-26 15:14:28 +02:00
|
|
|
import {
|
2023-05-15 09:23:59 +02:00
|
|
|
getLegalAndSupportSettings,
|
|
|
|
|
getPasswordComplexitySettings,
|
2023-04-26 15:14:28 +02:00
|
|
|
server,
|
|
|
|
|
} from "#/lib/zitadel";
|
|
|
|
|
import RegisterForm from "#/ui/RegisterForm";
|
2023-04-03 13:39:51 +02:00
|
|
|
|
2023-04-26 15:14:28 +02:00
|
|
|
export default async function Page() {
|
2023-05-15 09:23:59 +02:00
|
|
|
const legal = await getLegalAndSupportSettings(server);
|
|
|
|
|
const passwordComplexitySettings = await getPasswordComplexitySettings(
|
|
|
|
|
server
|
|
|
|
|
);
|
2023-04-03 13:39:51 +02:00
|
|
|
|
2023-05-17 17:04:56 +02:00
|
|
|
console.log(legal);
|
|
|
|
|
|
2023-04-03 13:39:51 +02:00
|
|
|
return (
|
|
|
|
|
<div className="flex flex-col items-center space-y-4">
|
2023-04-26 13:17:54 +02:00
|
|
|
<h1>Register</h1>
|
|
|
|
|
<p className="ztdl-p">Create your ZITADEL account.</p>
|
2023-04-03 13:39:51 +02:00
|
|
|
|
2023-05-15 09:23:59 +02:00
|
|
|
{legal && passwordComplexitySettings && (
|
2023-04-26 15:14:28 +02:00
|
|
|
<RegisterForm
|
2023-05-17 17:04:56 +02:00
|
|
|
legal={legal}
|
2023-05-15 09:23:59 +02:00
|
|
|
passwordComplexityPolicy={passwordComplexitySettings}
|
2023-04-26 15:14:28 +02:00
|
|
|
></RegisterForm>
|
|
|
|
|
)}
|
2023-04-03 13:39:51 +02:00
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|