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. |
Beta Was this translation helpful? Give feedback.
Replies: 1 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. |
Beta Was this translation helpful? Give feedback.
@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.