public function post(UserInterface
$account = NULL
) { $this->
ensureAccountCanRegister($account);
// Only activate new users if visitors are allowed to register and no email
// verification required.
if ($this->userSettings->
get('register'
) == UserInterface::REGISTER_VISITORS && !
$this->userSettings->
get('verify_mail'
)) { $account->
activate();
} else { $account->
block();
} $this->
checkEditFieldAccess($account);