forked from GNUsocial/gnu-social
Merge branch 'apiaccountregister_event_branch' into 'nightly'
APIStartRegistrationTry event See merge request !77
This commit is contained in:
commit
e4a1dff98d
@ -155,6 +155,7 @@ class ApiAccountRegisterAction extends ApiAction
|
||||
// annoy spammers
|
||||
sleep(7);
|
||||
|
||||
if (Event::handle('APIStartRegistrationTry', array($this))) {
|
||||
try {
|
||||
$user = User::register(array('nickname' => $nickname,
|
||||
'password' => $password,
|
||||
@ -175,6 +176,7 @@ class ApiAccountRegisterAction extends ApiAction
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Does the given email address already exist?
|
||||
|
Loading…
Reference in New Issue
Block a user