mirror of
https://github.com/flarum/core.git
synced 2025-07-19 15:51:16 +02:00
Don't automatically activate users created by admins - require an attribute to be set
This commit is contained in:
@@ -124,7 +124,7 @@ class RegisterUserHandler
|
||||
}
|
||||
}
|
||||
|
||||
if ($actor->isAdmin()) {
|
||||
if ($actor->isAdmin() && array_get($data, 'attributes.isActivated')) {
|
||||
$user->activate();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user