Make terms acceptance a required field on the Register page

This commit is contained in:
Joseph Garrone
2024-06-28 07:16:17 +02:00
parent a51724208c
commit 14cb07efb2
2 changed files with 34 additions and 4 deletions

View File

@ -170,3 +170,16 @@ export const WithPasswordMinLength8: Story = {
/>
)
};
export const WithTermsAcceptance: Story = {
render: () => (
<KcPageStory
kcContext={{
termsAcceptanceRequired: true,
"x-keycloakify": {
realmMessageBundleTermsText: "<a href='https://example.com/terms'>Service Terms of Use</a>"
}
}}
/>
)
};