From dfe234a7aaaacedcc94716f955b44a1b50c4a057 Mon Sep 17 00:00:00 2001 From: emkael Date: Wed, 6 Apr 2016 13:50:31 +0200 Subject: * components -> controls --- app/php/controls/LoginBox.php | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 app/php/controls/LoginBox.php (limited to 'app/php/controls/LoginBox.php') diff --git a/app/php/controls/LoginBox.php b/app/php/controls/LoginBox.php new file mode 100644 index 0000000..33bbcc1 --- /dev/null +++ b/app/php/controls/LoginBox.php @@ -0,0 +1,23 @@ +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 + ); + } + +} + +?> -- cgit v1.2.3