Elgg  Version 4.x
Variables
login.php File Reference

Go to the source code of this file.

Variables

 $username = get_input('username')
 
 $password = get_input('password', null, false)
 
 $persistent = (bool) get_input("persistent")
 
 $result = false
 
if(empty($username)||empty($password)) if(elgg_strpos($username, '@')!==false) $user
 
 try
 
catch(LoginException $e) if($request->isXhr()) $output
 
catch(LoginException $e) if($request->isXhr()) $message = elgg_echo('loginok', [], $user->getLanguage(get_current_language()))
 
 $forward_url = _elgg_get_login_forward_url($request, $user)
 

Variable Documentation

$forward_url = _elgg_get_login_forward_url($request, $user)

Definition at line 86 of file login.php.

catch (LoginException $e) if ($request->isXhr()) $message = elgg_echo('loginok', [], $user->getLanguage(get_current_language()))

Definition at line 85 of file login.php.

catch (LoginException $e) if ($request->isXhr()) $output
Initial value:
= [
'user' => $user
if(empty($username)||empty($password)) if(elgg_strpos($username, '@')!==false) $user
Definition: login.php:31

Definition at line 82 of file login.php.

$password = get_input('password', null, false)

Definition at line 11 of file login.php.

$persistent = (bool) get_input("persistent")

Definition at line 12 of file login.php.

$result = false

Definition at line 13 of file login.php.

if (empty($username)||empty($password)) if (elgg_strpos($username, '@')!==false) $user
Initial value:
})
elgg_call(int $flags, Closure $closure)
Calls a callable autowiring the arguments using public DI services and applying logic based on flags...
Definition: elgglib.php:731
get_user_by_username($username)
Get user by username.
Definition: users.php:41
$username
Definition: login.php:10
const ELGG_SHOW_DISABLED_ENTITIES
Definition: constants.php:148

Definition at line 31 of file login.php.

$username = get_input('username')

Definition at line 10 of file login.php.

try
Initial value:
{
$username
Definition: login.php:10
$result
Definition: login.php:13
$password
Definition: login.php:11
elgg_authenticate($username, $password)
Perform user authentication with a given username and password.
Definition: sessions.php:73

Definition at line 35 of file login.php.