summaryrefslogtreecommitdiff
path: root/demos/personal/protected/Common/LoginPortlet.php
diff options
context:
space:
mode:
Diffstat (limited to 'demos/personal/protected/Common/LoginPortlet.php')
-rw-r--r--demos/personal/protected/Common/LoginPortlet.php36
1 files changed, 18 insertions, 18 deletions
diff --git a/demos/personal/protected/Common/LoginPortlet.php b/demos/personal/protected/Common/LoginPortlet.php
index 1f5cd4f5..1b93912b 100644
--- a/demos/personal/protected/Common/LoginPortlet.php
+++ b/demos/personal/protected/Common/LoginPortlet.php
@@ -1,19 +1,19 @@
-<?php
-
-class LoginPortlet extends TTemplateControl
-{
- public function validateUser($sender,$param)
- {
- $authManager=$this->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());
- }
-}
-
+<?php
+
+class LoginPortlet extends TTemplateControl
+{
+ public function validateUser($sender,$param)
+ {
+ $authManager=$this->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