]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Event hook points needed for recaptcha on facebook login form (untested, but should...
authorBrion Vibber <brion@pobox.com>
Thu, 20 Jan 2011 23:55:36 +0000 (15:55 -0800)
committerBrion Vibber <brion@pobox.com>
Thu, 20 Jan 2011 23:55:36 +0000 (15:55 -0800)
plugins/FacebookBridge/actions/facebookfinishlogin.php

index 022c1e98b1a303b58a234a3160ce642c2f95f30e..7b2f27474173c02153fb28b437de1a5e3b1da80e 100644 (file)
@@ -257,12 +257,20 @@ class FacebookfinishloginAction extends Action
         $this->element('p', null,
                        _m('Create a new user with this nickname.'));
         $this->elementStart('ul', 'form_data');
+
+        // Hook point for captcha etc
+        Event::handle('StartRegistrationFormData', array($this));
+
         $this->elementStart('li');
         // TRANS: Field label.
         $this->input('newname', _m('New nickname'),
                      ($this->username) ? $this->username : '',
                      _m('1-64 lowercase letters or numbers, no punctuation or spaces'));
         $this->elementEnd('li');
+
+        // Hook point for captcha etc
+        Event::handle('EndRegistrationFormData', array($this));
+
         $this->elementEnd('ul');
         // TRANS: Submit button.
         $this->submit('create', _m('BUTTON','Create'));