mirror of
https://github.com/flarum/core.git
synced 2025-10-11 15:04:25 +02:00
Bypass email activation when admin creates user via API
This commit is contained in:
@@ -124,6 +124,10 @@ class RegisterUserHandler
|
||||
}
|
||||
}
|
||||
|
||||
if ($actor->isAdmin()) {
|
||||
$user->activate();
|
||||
}
|
||||
|
||||
$this->events->fire(
|
||||
new UserWillBeSaved($user, $actor, $data)
|
||||
);
|
||||
|
Reference in New Issue
Block a user