Source for file UserLogin.php
Documentation is available at UserLogin.php
* @license http://opensource.org/licenses/mozilla1.1.php Mozilla Public License
* @copyright 2005, diemeisterei GmbH. All rights reserved.
* @author $Author: schmunk $
* @version $Revision: 601 $ $Date: 2007-02-24 23:49:30 +0100 (Sa, 24 Feb 2007) $
* @package Phundament.Components
* @subpackage Authentication
* Login with username and password from form
public function login($sender, $param)
$manager= $this->Application->getModule('auth');
if (!$manager->login($this->Username->Text, $this->Password->Text))
$url= $this->Service->constructUrl("packages.UserLogin");
$this->Response->redirect($url);
$this->Session['Lithron:User:IsLoggedIn'] = true;
if ($this->User->isInRole("root"))
$this->Application->Session->add("SqLiteAdminAllowed", "yes");
* Handles response after login
parent :: onLoadComplete($param);
$return_url= $this->Application->getModule('auth')->getReturnUrl();
$url= $this->Service->constructUrl("packages.Administration");
$this->Response->redirect($url);
#$return_url = $this->Request->constructUrl("page",$this->Application->Service->getDefaultPage());
if ($this->IsPostBack && $this->IsValid)
$this->Response->redirect($return_url);
|