33 $user = $event->getUserParam();
34 $request = $event->getParam(
'request');
50 $current_password = (string)
$request->getParam(
'current_password', null,
false);
55 $request->validation()->fail(
'password',
'',
elgg_echo(
'LoginException:ChangePasswordFailure'));
64 $request->validation()->fail(
'password',
'', $e->getMessage());
78 $user->getDisplayName(),
79 $site->getDisplayName(),
86 'action' =>
'password_change',
87 'apply_muting' =>
false,
107 $user = $event->getUserParam();
110 $request = $event->getParam(
'request');
144 $user = $event->getUserParam();
145 $request = $event->getParam(
'request');
160 if (!
$user->canEdit()) {
207 $user = $event->getUserParam();
208 $request = $event->getParam(
'request');
255 $user = $event->getUserParam();
256 $request = $event->getParam(
'request');
273 $assert_unregistered =
true;
276 $assert_unregistered =
false;
333 $user = $event->getUserParam();
334 $request = $event->getParam(
'request');
362 $user = $event->getUserParam();
367 $request = $event->getParam(
'request');
372 $value = (bool)
$request->getParam(
'admin_validation_notification',
true);
elgg_register_event_handler(string $event, string $type, callable|string $callback, int $priority=500)
Helper functions for event handling.
HTTP response builder interface.
static setDefaultAccess(\Elgg\Event $event)
Set a user's default access level.
Exception thrown if an argument is not of the expected type.
$params
Saves global plugin settings.
elgg_get_config(string $name, $default=null)
Get an Elgg configuration value.
elgg_is_admin_logged_in()
Returns whether or not the viewer is currently logged in and an admin user.
Elgg registration action.
if(!$user||!$user->canDelete()) $name
if(!$user instanceof ElggUser) $who_can_change_language
static setLanguage(\Elgg\Event $event)
Set a user's language.
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
elgg_trigger_event_results(string $event, string $type, array $params=[], $returnvalue=null)
Triggers an event where it is expected that the mixed return value could be manipulated by event call...
Could not register a new user for whatever reason.
if($item instanceof\ElggEntity) elseif($item instanceof\ElggRiverItem) elseif($item instanceof\ElggRelationship) elseif(is_callable([$item, 'getType']))
static setPassword(\Elgg\Event $event)
Set a user's password.
const REFERRER
Used in calls to forward() to specify the browser should be redirected to the referring page...
if(!$user||!$user->canEdit()) $password
static setAdminValidationNotification(\Elgg\Event $event)
Save a setting related to admin approval of new users.
static setUsername(\Elgg\Event $event)
Set a user's username.
elgg_get_site_entity()
Get the current site entity.
static setEmail(\Elgg\Event $event)
Set a user's email address.
Event handlers for user settings.
notify_user(int|array $to, int $from=0, string $subject= '', string $message= '', array $params=[], $methods_override=null)
Notify a user via their preferences.
elgg_generate_url(string $name, array $parameters=[])
Generate a URL for named route.
_elgg_services()
Get the global service provider.
elgg_get_logged_in_user_entity()
Return the current logged in user, or null if no user is logged in.
static setName(\Elgg\Event $event)
Set a user's display name.
Models an event passed to event handlers.
if(!$user instanceof ElggUser) $default_access