summaryrefslogtreecommitdiff
path: root/demos/personal/protected/Pages/UserLogin.php
blob: 70cbc986e0bb8d6eb1641c41e9b2b3c222ff047b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php

class UserLogin 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';
	}
}

?>