blob: f7b7f4931f684354f82778e66af6fd7f3c3a6e7e (
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
26
27
28
29
30
31
32
33
34
35
36
37
38
|
<?php
Prado::using('Application.web.FacadeTemplateControl');
Prado::using('Application.facades.UserFacade');
class AccountActivation extends FacadeTemplateControl {
private $_emailHash;
private $_activationHash;
public function getEmail() {
return $this->_emailHash;
}
public function setEmail($email) {
$this->_emailHash = TPropertyValue::ensureString($email);
}
public function getHash() {
return $this->_activationHash;
}
public function setHash($hash) {
$this->_activationHash = TPropertyValue::ensureString($hash);
}
public function onPreRender($param) {
parent::onPreRender($param);
$this->SuccessLabel->Visible = $this->Facade->activateUser(
$this->Email, $this->Hash
);
$this->ErrorLabel->Visible = !$this->SuccessLabel->Visible;
}
}
?>
|