From f70a6798f14773faefea6628927d9240940a6f26 Mon Sep 17 00:00:00 2001 From: emkael Date: Wed, 15 Mar 2017 16:36:16 +0100 Subject: * activation landing page --- app/frontend/controls/AccountActivation.php | 38 +++++++++++++++++++++++++++++ app/frontend/controls/AccountActivation.tpl | 6 +++++ 2 files changed, 44 insertions(+) create mode 100644 app/frontend/controls/AccountActivation.php create mode 100644 app/frontend/controls/AccountActivation.tpl (limited to 'app/frontend/controls') diff --git a/app/frontend/controls/AccountActivation.php b/app/frontend/controls/AccountActivation.php new file mode 100644 index 0000000..f7b7f49 --- /dev/null +++ b/app/frontend/controls/AccountActivation.php @@ -0,0 +1,38 @@ +_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; + } + +} + +?> diff --git a/app/frontend/controls/AccountActivation.tpl b/app/frontend/controls/AccountActivation.tpl new file mode 100644 index 0000000..19c00b3 --- /dev/null +++ b/app/frontend/controls/AccountActivation.tpl @@ -0,0 +1,6 @@ + + <%[ Your account has been activated successfully. ]%> + + + <%[ There was a problem with account activation. Maybe your account is already active? ]%> + -- cgit v1.2.3