Elgg  Version 3.0
Variables
login.php File Reference

Go to the source code of this file.

Variables

 $username = get_input('username')
 Elgg login action. More...
 
 $password = get_input('password', null, false)
 
 $persistent = (bool) get_input("persistent")
 
 $result = false
 
if(empty($username)||empty($password)) if(strpos($username, '@')!==false &&($users=get_user_by_email($username))) $user = get_user_by_username($username)
 
 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 60 of file login.php.

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

Definition at line 59 of file login.php.

catch (LoginException $e) if ($request->isXhr()) $output
Initial value:
= [
'user' => $user
if(empty($username)||empty($password)) if(strpos($username, '@')!==false &&($users=get_user_by_email($username))) $user
Definition: login.php:22
Examples:
/root/Elgg/engine/lib/views.php.

Definition at line 56 of file login.php.

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

Definition at line 9 of file login.php.

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

Definition at line 10 of file login.php.

$result = false

Definition at line 11 of file login.php.

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

Definition at line 22 of file login.php.

$username = get_input('username')

Elgg login action.

Definition at line 8 of file login.php.

try
Initial value:
{
$username
Elgg login action.
Definition: login.php:8
$result
Definition: login.php:11
$password
Definition: login.php:9
elgg_authenticate($username, $password)
Perform user authentication with a given username and password.
Definition: sessions.php:98

Definition at line 24 of file login.php.