diff options
author | Daniel <darthdaniel85@gmail.com> | 2013-11-26 10:32:35 -0500 |
---|---|---|
committer | Daniel <darthdaniel85@gmail.com> | 2013-11-26 10:32:35 -0500 |
commit | 96957c384a549a5cf7ad9c0e330307cc362a1c09 (patch) | |
tree | 7d8c7166281517b3e56ae3399b4fef2ba3d5b354 /framework/Wsat/pages/TWsatLogin.php | |
parent | 227ef973f923ec201a1ece197f6242b3248c66ae (diff) |
Adjusting to PRADO code style...
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 |