From 8d156610be187427d43f4d033b258f060f8968ad Mon Sep 17 00:00:00 2001 From: xue <> Date: Fri, 9 Feb 2007 19:02:43 +0000 Subject: reorganize personal demo. --- demos/personal/protected/Common/LoginPortlet.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 demos/personal/protected/Common/LoginPortlet.php (limited to 'demos/personal/protected/Common/LoginPortlet.php') diff --git a/demos/personal/protected/Common/LoginPortlet.php b/demos/personal/protected/Common/LoginPortlet.php new file mode 100644 index 00000000..1f5cd4f5 --- /dev/null +++ b/demos/personal/protected/Common/LoginPortlet.php @@ -0,0 +1,19 @@ +Application->getModule('auth'); + if(!$authManager->login($this->Username->Text,$this->Password->Text)) + $param->IsValid=false; + } + + public function loginButtonClicked($sender,$param) + { + if($this->Page->IsValid) + $this->Response->redirect($this->Application->getModule('auth')->getReturnUrl()); + } +} + +?> \ No newline at end of file -- cgit v1.2.3