summaryrefslogtreecommitdiff
path: root/demos/personal/protected/Pages/LoginPage.php
diff options
context:
space:
mode:
authorxue <>2005-11-16 18:42:57 +0000
committerxue <>2005-11-16 18:42:57 +0000
commit28f69400fcb8ee74a2ea4bbf81afa00c1e6d5263 (patch)
treec2233bd30cddf3912af2617d1dc3636917467876 /demos/personal/protected/Pages/LoginPage.php
parentfdd0a3ad7b2f9f942b94fde84277529ecae2a3b3 (diff)
Diffstat (limited to 'demos/personal/protected/Pages/LoginPage.php')
-rw-r--r--demos/personal/protected/Pages/LoginPage.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/demos/personal/protected/Pages/LoginPage.php b/demos/personal/protected/Pages/LoginPage.php
new file mode 100644
index 00000000..3a3b8432
--- /dev/null
+++ b/demos/personal/protected/Pages/LoginPage.php
@@ -0,0 +1,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';
+ }
+}
+
+?> \ No newline at end of file