Repository navigation
Can I hide the username field in registration without setting "email as username"? #41475
Unanswered
DanShackleton
asked this question in
Q&A
Replies: 1 comment
|
I don't think thats possible via the configuration. You could modify the registration page and remove the username field. Then create a new custom registration flow in which you set/generate the username (because username is a required field). I think restricting the self-registration for students is not that easy, because when a user visits the registration page, you don't know whether the user is a teacher or student. Just an idea: you could disable the self-registration and create a custom invitation registration flow. Create a custom endpoint (called by an admin) that sends an invitation mail to a teacher. The teacher clicks on the link and enters the required registration information. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I have 2 user roles in the same realm - teacher and student. Teachers should be able to sign up with just email and password (no username). Students should not be able to register, but teachers should be able to create an account for them with username. Is it possible to hide the username field from the teacher registration client so it only shows email and password and not username as well, but allow username accounts for students?
If I set "email as username" on the realm, it does not let me create a student account with just a username. If I do not set it, I have to enter both a username and an email for a new teacher account. I have considered creating different realms for different user types, but we have multi-tenancy and want to make use of KC's Organizations feature, sharing Organizations between students and teachers. What's the best approach regarding per-client registration rules and fields vs whole realm, and multi-tenancy with different user roles?
All reactions