mirror of
https://github.com/opensupports/opensupports.git
synced 2025-07-30 01:05:18 +02:00
Guillermo - ban-on-signup[skip ci]
This commit is contained in:
parent
e962afba67
commit
d40327f0ce
@ -43,6 +43,12 @@ class SignUpController extends Controller {
|
|||||||
Response::respondError(ERRORS::USER_EXISTS);
|
Response::respondError(ERRORS::USER_EXISTS);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
$banRow = Ban::getDataStore($this->userEmail,'email');
|
||||||
|
|
||||||
|
if (!$banRow->isNull()) {
|
||||||
|
Response::respondError(ERRORS::ALREADY_BANNED);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$userId = $this->createNewUserAndRetrieveId();
|
$userId = $this->createNewUserAndRetrieveId();
|
||||||
$this->sendRegistrationMail();
|
$this->sendRegistrationMail();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user