Elgg  Version 4.3
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(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 95 of file login.php.

Initial value:
= [
'user' => $user
if(empty($username)||empty($password)) if(elgg_strpos($username, '@')!==false) $user
Definition: login.php:30

Definition at line 92 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)) 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:592
get_user_by_username($username)
Get user by username.
Definition: users.php:41
$username
Definition: login.php:9
const ELGG_SHOW_DISABLED_ENTITIES
Definition: constants.php:148

Definition at line 30 of file login.php.

$username = get_input('username')

Definition at line 9 of file login.php.

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 34 of file login.php.