mirror of
https://github.com/opensupports/opensupports.git
synced 2025-07-29 08:44:58 +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);
|
||||
return;
|
||||
}
|
||||
$banRow = Ban::getDataStore($this->userEmail,'email');
|
||||
|
||||
if (!$banRow->isNull()) {
|
||||
Response::respondError(ERRORS::ALREADY_BANNED);
|
||||
return;
|
||||
}
|
||||
|
||||
$userId = $this->createNewUserAndRetrieveId();
|
||||
$this->sendRegistrationMail();
|
||||
|
Loading…
x
Reference in New Issue
Block a user