79 $request->setParam(
'elgg_fetch_messages', 0);
elgg_call(int $flags, Closure $closure)
Calls a callable autowiring the arguments using public DI services and applying logic based on flags...
if(empty($username)||empty($password)) if(elgg_strpos($username, '@')!==false) $user
_elgg_get_login_forward_url(\Elgg\Request $request,\ElggUser $user)
Determine which URL the user should be forwarded to upon successful login.
get_user_by_email($email)
Get an array of users from an email address.
Generic parent class for login exceptions.
if(empty($user_guids)) $users
get_current_language()
Get the current system/user language or "en".
elgg_get_session()
Gets Elgg's session object.
const ELGG_HTTP_UNAUTHORIZED
catch(LoginException $e) if($request->isXhr()) $output
elgg_echo($message_key, array $args=[], $language="")
Elgg language module Functions to manage language and translations.
get_user_by_username($username)
Get user by username.
const ELGG_SHOW_DISABLED_ENTITIES
elgg_strpos()
Wrapper function for mb_strpos().
elgg_generate_url($name, array $parameters=[])
Generate a URL for named route.
elgg_register_error_message($options)
Registers a error system message.
const ELGG_HTTP_BAD_REQUEST
elgg_authenticate($username, $password)
Perform user authentication with a given username and password.
elgg_error_response($message= '', $forward_url=REFERRER, int $status_code=ELGG_HTTP_BAD_REQUEST)
Prepare an error response to be returned by a page or an action handler.
login(\ElggUser $user, $persistent=false)
Logs in a specified .
elgg_ok_response($content= '', $message= '', $forward_url=null, int $status_code=ELGG_HTTP_OK)
Prepares a successful response to be returned by a page or an action handler.
elgg_is_xhr()
Checks whether the request was requested via ajax.
Login as the specified user.
catch(LoginException $e) if($request->isXhr()) $message
getRedirectUrl()
Get preferred redirect URL.