We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 77eda410 authored by Zach Copley's avatar Zach Copley

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

parent f3d48d2d
......@@ -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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment