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