summaryrefslogtreecommitdiff
path: root/app/frontend/events/RegistrationEvents.php
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2017-03-15 16:41:46 +0100
committeremkael <emkael@tlen.pl>2017-03-15 16:47:25 +0100
commit44149fc7916ab129e626441d2d81cd8ec7a8ec9f (patch)
tree22958adaa46b7595ce66e78ebf8dcf37e8ddae20 /app/frontend/events/RegistrationEvents.php
parentf70a6798f14773faefea6628927d9240940a6f26 (diff)
* activation on registration
Diffstat (limited to 'app/frontend/events/RegistrationEvents.php')
-rw-r--r--app/frontend/events/RegistrationEvents.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/app/frontend/events/RegistrationEvents.php b/app/frontend/events/RegistrationEvents.php
new file mode 100644
index 0000000..21bcff3
--- /dev/null
+++ b/app/frontend/events/RegistrationEvents.php
@@ -0,0 +1,16 @@
+<?php
+
+Prado::using('Application.events.EventModule');
+Prado::using('Application.model.User');
+Prado::using('Application.facades.UserFacade');
+
+class RegistrationEvents extends EventModule {
+
+ public function onUserRegistered(User $user) {
+ $facade = UserFacade::getInstance();
+ $facade->requestActivation($user);
+ }
+
+}
+
+?>