diff options
Diffstat (limited to 'framework/Wsat/pages/TWsatLogin.php')
-rw-r--r-- | framework/Wsat/pages/TWsatLogin.php | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/framework/Wsat/pages/TWsatLogin.php b/framework/Wsat/pages/TWsatLogin.php index 7c4570af..4b3ba0c1 100644 --- a/framework/Wsat/pages/TWsatLogin.php +++ b/framework/Wsat/pages/TWsatLogin.php @@ -9,28 +9,30 @@ * @since 3.3 * @package Wsat.pages */ +class TWsatLogin extends TPage +{ -class TWsatLogin extends TPage { - - public function login() { - if ($this->IsValid) { + public function login() + { + if ($this->IsValid) + { $this->Session["wsat_password"] = $this->getService()->getPassword(); $authManager = $this->Application->getModule('auth'); $url = $authManager->ReturnUrl; - if (empty($url)) { + if (empty($url)) + { $url = $this->Service->constructUrl('TWsatHome'); } $this->Response->redirect($url); } } - public function validatePassword($sender, $param) { + 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 +}
\ No newline at end of file |