summaryrefslogtreecommitdiff
path: root/demos/personal/protected/Pages/UserLogin.php
diff options
context:
space:
mode:
Diffstat (limited to 'demos/personal/protected/Pages/UserLogin.php')
-rw-r--r--demos/personal/protected/Pages/UserLogin.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/demos/personal/protected/Pages/UserLogin.php b/demos/personal/protected/Pages/UserLogin.php
new file mode 100644
index 00000000..70cbc986
--- /dev/null
+++ b/demos/personal/protected/Pages/UserLogin.php
@@ -0,0 +1,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';
+ }
+}
+
+?> \ No newline at end of file