28 'action_type' =>
'join',
29 'subject_guid' => $event->getObject()->guid,
46 $user = $event->getUserParam();
52 if (
$user->isEnabled()) {
54 $user->disable(
'admin_validation_required', false);
58 $user->setValidationStatus(
false);
62 $session->set(
'admin_validation',
true);
84 $user = $event->getObject();
90 if (
$user->isEnabled() &&
$user->isValidated() !==
false) {
112 if (!
$session->get(
'admin_validation')) {
147 'metadata_name_value_pairs' => [
148 'validated' =>
false,
150 'created_before' =>
"-{$days} days",
153 'batch_inc_offset' =>
false,
158 if (!
$user->delete()) {
if(empty($user_guids)) $users
Models an event passed to event handlers.
Generic parent class for login exceptions.
User Validation related events.
static setRegistrationForwardUrl(\Elgg\Event $event)
Set the correct forward url after user registration.
static removeUnvalidatedUsers(\Elgg\Event $event)
Remove unvalidated users after x days.
static preventUserLogin(\Elgg\Event $event)
Prevent unvalidated users from logging in.
static checkAdminValidation(\Elgg\Event $event)
Check if new users need to be validated by an administrator.
static addRiverActivityAfterValidation(\Elgg\Event $event)
Adds river activity that a new user joined the site.
elgg_get_config(string $name, $default=null)
Get an Elgg configuration value.
const ELGG_IGNORE_ACCESS
elgg_call() flags
const ELGG_SHOW_DISABLED_ENTITIES
const REFERRER
Used in calls to forward() to specify the browser should be redirected to the referring page.
_elgg_services()
Get the global service provider.
elgg_call(int $flags, Closure $closure)
Calls a callable autowiring the arguments using public DI services and applying logic based on flags.
elgg_get_entities(array $options=[])
Fetches/counts entities or performs a calculation on their properties.
elgg_get_site_entity()
Get the current site entity.
HTTP response builder interface.
elgg_echo(string $message_key, array $args=[], string $language='')
Elgg language module Functions to manage language and translations.
if(isset($_COOKIE['elggperm'])) $session
elgg_generate_url(string $name, array $parameters=[])
Generate a URL for named route.
elgg_create_river_item(array $options=[])
Elgg river.
elgg_get_session()
Gets Elgg's session object.