"Remember me" and email instead of username

50 views
Skip to first unread message

amandin...@smartpanda.com

unread,
May 11, 2021, 6:06:35 AM5/11/21
to Keycloak User
Hello,

My realm users's username are UUID strings. My users can login with email, but when they use the "remember me" check-box, when they disconnect and try to reconnect, the UUID is filled in the login form instead of the email address.

Is it possible to fill the login form with the email address instead of username when using the "remember me" check-box ?

I tried to change the theme (login.ftl) for using the email instead of username but it doesn't work, I'm getting an empty username field...

<input tabindex="1" id="username" class="${properties.kcInputClass!}" name="username" value="${(login.email!'')}" type="email" disabled />

Is there a way to make this work ?

Thanks !
Reply all
Reply to author
Forward
0 new messages