summaryrefslogtreecommitdiff
path: root/framework/Wsat/pages/TWsatLogin.php
diff options
context:
space:
mode:
authorDaniel <darthdaniel85@gmail.com>2013-11-30 02:58:02 -0500
committerDaniel <darthdaniel85@gmail.com>2013-11-30 02:58:02 -0500
commit22276c273cc158cf12fd7b63e581b08cdae7b6f1 (patch)
tree560010fd44ef36d686a0d16313d983b1da6d9acc /framework/Wsat/pages/TWsatLogin.php
parent96957c384a549a5cf7ad9c0e330307cc362a1c09 (diff)
Adding Many To Many relationships support!
Diffstat (limited to 'framework/Wsat/pages/TWsatLogin.php')
-rw-r--r--framework/Wsat/pages/TWsatLogin.php36
1 files changed, 18 insertions, 18 deletions
diff --git a/framework/Wsat/pages/TWsatLogin.php b/framework/Wsat/pages/TWsatLogin.php
index 4b3ba0c1..02d5c9fd 100644
--- a/framework/Wsat/pages/TWsatLogin.php
+++ b/framework/Wsat/pages/TWsatLogin.php
@@ -12,27 +12,27 @@
class TWsatLogin extends TPage
{
- public function login()
- {
- if ($this->IsValid)
+ public function login()
{
- $this->Session["wsat_password"] = $this->getService()->getPassword();
+ if ($this->IsValid)
+ {
+ $this->Session["wsat_password"] = $this->getService()->getPassword();
- $authManager = $this->Application->getModule('auth');
- $url = $authManager->ReturnUrl;
- if (empty($url))
- {
- $url = $this->Service->constructUrl('TWsatHome');
- }
- $this->Response->redirect($url);
+ $authManager = $this->Application->getModule('auth');
+ $url = $authManager->ReturnUrl;
+ if (empty($url))
+ {
+ $url = $this->Service->constructUrl('TWsatHome');
+ }
+ $this->Response->redirect($url);
+ }
}
- }
- public function validatePassword($sender, $param)
- {
- $config_pass = $this->getService()->getPassword();
- $user_pass = $this->password->Text;
- $param->IsValid = $user_pass === $config_pass;
- }
+ public function validatePassword($sender, $param)
+ {
+ $config_pass = $this->getService()->getPassword();
+ $user_pass = $this->password->Text;
+ $param->IsValid = $user_pass === $config_pass;
+ }
} \ No newline at end of file