Elgg  Version 1.9
Namespaces | Variables
login.php File Reference

Go to the source code of this file.

Namespaces

 Elgg\Core
 Activate a plugin or plugins.
 

Variables

 $session = elgg_get_session()
 
if($session->has('last_forward_from')) elseif(get_input('returntoreferer')) else
 
 $forward_source = null
 
 $username = get_input('username')
 
 $password = get_input('password', null, false)
 
 $persistent = (bool) get_input("persistent")
 
 $result = false
 
if($result!==true) $user = get_user_by_username($username)
 
if(!$usertry
 
 $params = array('user' => $user, 'source' => $forward_source)
 
 $forward_url = elgg_trigger_plugin_hook('login:forward', 'user', $params, $forward_url)
 

Variable Documentation

$forward_source = null

Definition at line 21 of file login.php.

$forward_url = elgg_trigger_plugin_hook('login:forward', 'user', $params, $forward_url)

Definition at line 73 of file login.php.

$params = array('user' => $user, 'source' => $forward_source)
$password = get_input('password', null, false)

Definition at line 25 of file login.php.

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

Definition at line 26 of file login.php.

if (empty($username)||empty($password)) if (strpos($username, '@')!==false &&($users=get_user_by_email($username))) $result = false

Definition at line 27 of file login.php.

read ElggSession $session = elgg_get_session()

Definition at line 9 of file login.php.

if ($result!==true) $user = get_user_by_username($username)

Definition at line 45 of file login.php.

$username = get_input('username')

Definition at line 24 of file login.php.

catch (LoginException $e) if ($user->language) else
Initial value:
{
$forward_url
Definition: login.php:73

Definition at line 18 of file login.php.

if (!$user) try
Initial value:
{
$persistent
Definition: login.php:26
login(ElggUser $user, $persistent=false)
Logs in a specified ElggUser.
Definition: sessions.php:305
if($result!==true) $user
Definition: login.php:45

Definition at line 51 of file login.php.