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