summaryrefslogtreecommitdiff
path: root/framework/Wsat/pages/TWsatLogin.php
diff options
context:
space:
mode:
authorDaniel <darthdaniel85@gmail.com>2013-11-26 10:32:35 -0500
committerDaniel <darthdaniel85@gmail.com>2013-11-26 10:32:35 -0500
commit96957c384a549a5cf7ad9c0e330307cc362a1c09 (patch)
tree7d8c7166281517b3e56ae3399b4fef2ba3d5b354 /framework/Wsat/pages/TWsatLogin.php
parent227ef973f923ec201a1ece197f6242b3248c66ae (diff)
Adjusting to PRADO code style...
Diffstat (limited to 'framework/Wsat/pages/TWsatLogin.php')
-rw-r--r--framework/Wsat/pages/TWsatLogin.php20
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