[ Index ]
 

Code source de PRADO 3.0.6

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/demos/personal/protected/Pages/ -> UserLogin.php (source)

   1  <?php
   2  
   3  class UserLogin extends TPage
   4  {
   5  	public function login($sender,$param)
   6      {
   7          $manager=$this->Application->getModule('auth');
   8          if(!$manager->login($this->Username->Text,$this->Password->Text))
   9              $param->IsValid=false;
  10      }
  11  
  12  	public function onLoadComplete($param)
  13      {
  14          parent::onLoadComplete($param);
  15          if($this->IsPostBack && $this->IsValid)
  16              $this->Response->redirect($this->Application->getModule('auth')->getReturnUrl());
  17      }
  18  }
  19  
  20  ?>


Généré le : Sun Feb 25 21:07:04 2007 par Balluche grâce à PHPXref 0.7