Elgg
Version 1.11
|
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(!$user) | try |
$params = array('user' => $user, 'source' => $forward_source) | |
$forward_url = elgg_trigger_plugin_hook('login:forward', 'user', $params, $forward_url) | |
$forward_url = elgg_trigger_plugin_hook('login:forward', 'user', $params, $forward_url) |
$session = elgg_get_session() |
if ($result!==true) $user = get_user_by_username($username) |
catch (LoginException $e) if ($user->language) else |