Elgg  Version 5.1
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)) $user
 
if($user instanceof\ElggUser) try
 
catch(AuthenticationException|LoginException $e) if(elgg_is_xhr()) $output
 
catch(AuthenticationException|LoginException $e) if(elgg_is_xhr()) $message = elgg_echo('loginok', [], $user->getLanguage(elgg_get_current_language()))
 

Variable Documentation

Definition at line 89 of file login.php.

Initial value:
= [
'user' => $user
if(empty($username)||empty($password)) $user
Definition: login.php:19

Definition at line 86 of file login.php.

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

Definition at line 10 of file login.php.

$persistent = (bool) get_input('persistent')

Definition at line 11 of file login.php.

$result = false

Definition at line 12 of file login.php.

if (empty($username)||empty($password)) $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:299
elgg_get_user_by_username(string $username, bool $try_email=false)
Get a user by username.
Definition: users.php:39
$username
Definition: login.php:9
const ELGG_SHOW_DISABLED_ENTITIES
Definition: constants.php:132

Definition at line 19 of file login.php.

$username = get_input('username')

Definition at line 9 of file login.php.

if ($user instanceof\ElggUser) try
Initial value:
{
'username' => $username,
'password' => $password,
])
$username
Definition: login.php:9
$result
Definition: login.php:12
$password
Definition: login.php:10
elgg_pam_authenticate(string $policy, array $authentication_params=[])
Start an authentication process.
Definition: pam.php:58

Definition at line 28 of file login.php.