]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Event hook points needed to run Recaptcha on Twitter registration
authorBrion Vibber <brion@pobox.com>
Thu, 20 Jan 2011 23:49:57 +0000 (15:49 -0800)
committerBrion Vibber <brion@pobox.com>
Thu, 20 Jan 2011 23:49:57 +0000 (15:49 -0800)
plugins/TwitterBridge/twitterauthorization.php

index cc3af588789f5d780497a79d5729db19608e3afe..e78ba6a674e1c392db9fe20b73fb002d9cf32aab 100644 (file)
@@ -382,11 +382,19 @@ class TwitterauthorizationAction 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');
         $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');
         $this->submit('create', _m('Create'));
         $this->elementEnd('fieldset');