From 96957c384a549a5cf7ad9c0e330307cc362a1c09 Mon Sep 17 00:00:00 2001 From: Daniel Date: Tue, 26 Nov 2013 10:32:35 -0500 Subject: Adjusting to PRADO code style... --- framework/Wsat/pages/TWsatLogin.php | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'framework/Wsat/pages/TWsatLogin.php') 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 -- cgit v1.2.3