mirror of
https://github.com/flarum/framework.git
synced 2024-12-04 00:03:37 +08:00
Don't automatically activate users created by admins - require an attribute to be set
This commit is contained in:
parent
fb5dd99356
commit
d19cd6fc75
|
@ -124,7 +124,7 @@ class RegisterUserHandler
|
|||
}
|
||||
}
|
||||
|
||||
if ($actor->isAdmin()) {
|
||||
if ($actor->isAdmin() && array_get($data, 'attributes.isActivated')) {
|
||||
$user->activate();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user