240 return _elgg_services()->persistentLogin->getUserFromToken($token);
force_user_password_reset($user_guid, $password)
Low level function to reset a given user's password.
elgg_http_add_url_query_elements($url, array $elements)
Sets elements in a URL's query string.
elgg_validate_registration_data($username, $password, $name, $email, $allow_multiple_emails=false)
Assert that given registration details are valid and can be used to register the user.
if(!$user||!$user->canDelete()) $name
$params
Saves global plugin settings.
get_user($guid)
Get a user object from a GUID.
Elgg registration action.
get_user_by_email($email)
Get an array of users from an email address.
elgg_get_user_by_persistent_token(string $token)
Get a user based on a persistent login token.
send_new_password_request($user_guid)
Generate and send a password request email to a given user's registered email address.
elgg_list_entities(array $options=[], $getter= 'elgg_get_entities', $viewer= 'elgg_view_entity_list')
Returns a string of rendered entities.
get_user_by_username($username)
Get user by username.
register_user($username, $password, $name, $email, $allow_multiple_emails=false, $subtype=null, array $params=[])
Registers a user, returning false if the username already exists.
generate_invite_code($username)
Generates a unique invite code for a user.
A generic parent class for Class exceptions.
if(!$user||!$user->canEdit()) $password
elgg_log($message, $level=\Psr\Log\LogLevel::NOTICE)
Log a message.
elgg_generate_url($name, array $parameters=[])
Generate a URL for named route.
elgg_trigger_plugin_hook($hook, $type, $params=null, $returnvalue=null)
get_online_users(array $options=[])
Render a list of currently online users.
elgg_get_registration_url(array $query=[], $fragment= '')
Returns site's registration URL Triggers a 'registration_url', 'site' plugin hook that can be used by...
generate_random_cleartext_password()
Generate a random 12 character clear text password.
foreach($plugin_guids as $guid) if(empty($deactivated_plugins)) $url
_elgg_services()
Get the global service provider.
elgg_validate_invite_code($username, $code)
Validate a user's invite code.
find_active_users(array $options=[])
Return users (or the number of them) who have been active within a recent period. ...
elgg_get_login_url(array $query=[], $fragment= '')
Returns site's login URL Triggers a 'login_url', 'site' plugin hook that can be used by plugins to al...
$guid
Reset an ElggUpgrade.
execute_new_password_request($user_guid, $conf_code, $password=null)
Validate and change password for a user.