blob: 3a3b84328807ed91cb3251ed566e0b41d9e8f67f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
<?php
class LoginPage extends TPage
{
public function login($sender,$param)
{
$manager=$this->Application->AuthManager;
if($manager->login($this->username->Text,$this->password->Text))
$this->Application->Response->redirect($this->Application->Request->Items['ReturnUrl']);
else
$this->error->Text='login failed';
}
}
?>
|