mirror of
https://github.com/flarum/framework.git
synced 2025-02-23 11:51:51 +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…
x
Reference in New Issue
Block a user