Improve stories

This commit is contained in:
Joseph Garrone 2024-06-12 23:22:21 +02:00
parent 1abc5a5643
commit 526dbcc0e7
2 changed files with 12 additions and 4 deletions

View File

@ -21,10 +21,6 @@ export const WithInvalidCredential: Story = {
render: () => (
<KcPageStory
kcContext={{
message: {
summary: "Invalid username or password.",
type: "error"
},
login: {
username: "johndoe"
},

View File

@ -121,3 +121,15 @@ export const WithPresets: Story = {
/>
)
};
export const WithPasswordMinLength8: Story = {
render: () => (
<KcPageStory
kcContext={{
passwordPolicies: {
length: 8
}
}}
/>
)
};