summaryrefslogtreecommitdiff
path: root/demos/personal/protected/pages/LoginPage.php
diff options
context:
space:
mode:
authorxue <>2005-11-16 13:33:17 +0000
committerxue <>2005-11-16 13:33:17 +0000
commit749dec2fcae7b8cdd86ecc923b1af3abfadbcde2 (patch)
treeb31617a60b7884ce6a7292896c5b7b17cdbf9754 /demos/personal/protected/pages/LoginPage.php
parentf5294995a9324d8e748b2f5520fb43675d1e54fe (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