blob: 33bbcc126d41133df8e5a4edd808343f2d6da605 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
<?php
class LoginBox extends TTemplateControl {
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
);
}
}
?>
|