]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Add Start/EndRegistrationData event hooks in finishopenidlogin: allows recaptcha...
authorBrion Vibber <brion@pobox.com>
Thu, 20 Jan 2011 23:40:59 +0000 (15:40 -0800)
committerBrion Vibber <brion@pobox.com>
Thu, 20 Jan 2011 23:40:59 +0000 (15:40 -0800)
plugins/OpenID/finishopenidlogin.php

index 8d498d05490b65dec6b746cbaf9a5b941b62557c..d6bd7390dddb7fd118fe2ab5f7d7c02e72d8864f 100644 (file)
@@ -118,11 +118,19 @@ class FinishopenidloginAction 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->elementStart('li');
         $this->element('input', array('type' => 'checkbox',
                                       'id' => 'license',