blob: eb448eb0c0b683a0579dcd8221681b414a51990a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
<?php
Prado::using('Application.components.TemplateControl');
class LoginBox extends TemplateControl {
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
);
}
}
?>
|