Added Start/EndRegistrationTry events to Facebook Bridge's user registration

This commit is contained in:
Zach Copley 2011-01-06 12:15:59 -08:00
parent f3d48d2dfe
commit 77eda41030
1 changed files with 6 additions and 0 deletions

View 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);
}