lukin / keywind

Keywind is a component-based Keycloak Login Theme built with Tailwind CSS
Apache License 2.0
793 stars 277 forks source link

Invalid password message doesn't display #18

Closed LEXUGE closed 2 years ago

LEXUGE commented 2 years ago

Hi, I really like the keywind theme after all. However, there is a minor issue that it doesn't display "Invalid password: minimum length 10." correctly on registration.

I am not sure how to patch it.

YoanSimco commented 2 years ago

Hi!

This is due to this line (can be fixed by removing it): https://github.com/lukin/keywind/blob/master/theme/keywind/login/register.ftl#L67.

<@inputPrimary.kw
    autocomplete="new-password"
    invalid=["password", "password-confirm"]
    message=false                             -> disable messages for this field
    name="password"
    type="password"
>
    ${msg("password")}
</@inputPrimary.kw>

I will open a pull request 😉