mirror of
https://github.com/flarum/core.git
synced 2025-07-20 08:11:27 +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();
|
$user->activate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user