Don't automatically activate users created by admins - require an attribute to be set

This commit is contained in:
Toby Zerner 2016-01-02 15:24:35 +10:30
parent fb5dd99356
commit d19cd6fc75

View File

@ -124,7 +124,7 @@ class RegisterUserHandler
}
}
if ($actor->isAdmin()) {
if ($actor->isAdmin() && array_get($data, 'attributes.isActivated')) {
$user->activate();
}