assign roles to a user during registration? #12
|
What is the best place to assign roles to a user during registration? Is there a dedicated hook that assigns permissions when registration begins, or is it preferable to use a database trigger? .. Sorry for the many questions. Here is a simple example. |
Answered by
thecodearcher
Jun 21, 2026
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@ineo7 Your approach is correct, assign default roles in an After hook for signup. That’s the best place in Limen today because the user already exists there, so you can safely attach a default role.