summaryrefslogtreecommitdiff
path: root/app/php/pages/Login.php
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2016-03-10 17:11:11 +0100
committeremkael <emkael@tlen.pl>2016-03-10 17:11:11 +0100
commitbb786c1e19aeaa44b81b47265a284e8737c09e65 (patch)
treed9896a7d27adc3197ca0d0b3ac7114396a52f5d3 /app/php/pages/Login.php
parent94fb52459898989ea2158e6b90440632724a1679 (diff)
* login box as a component
Diffstat (limited to 'app/php/pages/Login.php')
-rw-r--r--app/php/pages/Login.php23
1 files changed, 0 insertions, 23 deletions
diff --git a/app/php/pages/Login.php b/app/php/pages/Login.php
deleted file mode 100644
index c4d33c2..0000000
--- a/app/php/pages/Login.php
+++ /dev/null
@@ -1,23 +0,0 @@
-<?php
-
-class Login extends TPage {
-
- public function loginUser($sender, $param) {
- if ($this->Page->IsValid) {
- $this->Response->redirect(
- $this->Application->getModule('auth')->ReturnUrl
- ?: $this->Service->constructUrl(NULL)
- );
- }
- }
-
- public function validatePassword($sender, $param) {
- $param->IsValid = $this->Application->getModule('auth')->login(
- $this->Login->Text,
- $this->Password->Text
- );
- }
-
-}
-
-?>