user.create:before
Parameters
Parameter | Type |
---|---|
$user | Kirby\Cms\User |
$input | array |
Example
Prevent users with a specific role from creating new users with the same role:
The $user
parameter refers to the newly created Kirby\Cms\User
object (not the currently logged-in user, which we get via kirby()->user()
). The $input
array contains the form data (name, email, passsword, language, role, model).