summaryrefslogtreecommitdiff
path: root/demos/controls/protected/pages/LoginPage.php
blob: 3b5cc3f92aceac3244715c41312e3825b8a0877f (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->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';
	}
}

?>