]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Added Start/EndRegistrationTry events to Facebook Bridge's user registration
authorZach Copley <zach@status.net>
Thu, 6 Jan 2011 20:15:59 +0000 (12:15 -0800)
committerZach Copley <zach@status.net>
Thu, 6 Jan 2011 20:15:59 +0000 (12:15 -0800)
plugins/FacebookBridge/actions/facebookfinishlogin.php

index 349acd7e2298630e8839c13724c07ce907449e9f..022c1e98b1a303b58a234a3160ce642c2f95f30e 100644 (file)
@@ -299,6 +299,10 @@ class FacebookfinishloginAction extends Action
 
     function createNewUser()
     {
+        if (!Event::handle('StartRegistrationTry', array($this))) {
+            return;
+        }
+
         if (common_config('site', 'closed')) {
             // TRANS: Client error trying to register with registrations not allowed.
             $this->clientError(_m('Registration not allowed.'));
@@ -389,6 +393,8 @@ class FacebookfinishloginAction extends Action
             __FILE__
         );
 
+        Event::handle('EndRegistrationTry', array($this));
+
         $this->goHome($user->nickname);
     }