summaryrefslogtreecommitdiff
path: root/lib/prado/framework/Wsat/pages/TWsatLogin.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/prado/framework/Wsat/pages/TWsatLogin.php')
-rw-r--r--lib/prado/framework/Wsat/pages/TWsatLogin.php32
1 files changed, 32 insertions, 0 deletions
diff --git a/lib/prado/framework/Wsat/pages/TWsatLogin.php b/lib/prado/framework/Wsat/pages/TWsatLogin.php
new file mode 100644
index 0000000..cfd4d56
--- /dev/null
+++ b/lib/prado/framework/Wsat/pages/TWsatLogin.php
@@ -0,0 +1,32 @@
+<?php
+
+/**
+ * @author Daniel Sampedro Bello <darthdaniel85@gmail.com>
+ * @link https://github.com/pradosoft/prado
+ * @copyright Copyright &copy; 2005-2015 The PRADO Group
+ * @license https://github.com/pradosoft/prado/blob/master/COPYRIGHT
+ * @version $Id$
+ * @since 3.3
+ * @package Wsat.pages
+ */
+class TWsatLogin extends TPage
+{
+
+ public function login()
+ {
+ if ($this->IsValid)
+ {
+ $this->Session["wsat_password"] = $this->getService()->getPassword();
+ $url = $this->Service->constructUrl('TWsatHome');
+ $this->Response->redirect($url);
+ }
+ }
+
+ public function validatePassword($sender, $param)
+ {
+ $config_pass = $this->Service->Password;
+ $user_pass = $this->password->Text;
+ $param->IsValid = $user_pass === $config_pass;
+ }
+
+} \ No newline at end of file