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