Event hook points needed for recaptcha on facebook login form (untested, but should be legit -- same adds as openid & twitter reg forms)
This commit is contained in:
parent
c1e4be6ab9
commit
ddde99cd89
|
@ -257,12 +257,20 @@ class FacebookfinishloginAction extends Action
|
||||||
$this->element('p', null,
|
$this->element('p', null,
|
||||||
_m('Create a new user with this nickname.'));
|
_m('Create a new user with this nickname.'));
|
||||||
$this->elementStart('ul', 'form_data');
|
$this->elementStart('ul', 'form_data');
|
||||||
|
|
||||||
|
// Hook point for captcha etc
|
||||||
|
Event::handle('StartRegistrationFormData', array($this));
|
||||||
|
|
||||||
$this->elementStart('li');
|
$this->elementStart('li');
|
||||||
// TRANS: Field label.
|
// TRANS: Field label.
|
||||||
$this->input('newname', _m('New nickname'),
|
$this->input('newname', _m('New nickname'),
|
||||||
($this->username) ? $this->username : '',
|
($this->username) ? $this->username : '',
|
||||||
_m('1-64 lowercase letters or numbers, no punctuation or spaces'));
|
_m('1-64 lowercase letters or numbers, no punctuation or spaces'));
|
||||||
$this->elementEnd('li');
|
$this->elementEnd('li');
|
||||||
|
|
||||||
|
// Hook point for captcha etc
|
||||||
|
Event::handle('EndRegistrationFormData', array($this));
|
||||||
|
|
||||||
$this->elementEnd('ul');
|
$this->elementEnd('ul');
|
||||||
// TRANS: Submit button.
|
// TRANS: Submit button.
|
||||||
$this->submit('create', _m('BUTTON','Create'));
|
$this->submit('create', _m('BUTTON','Create'));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user