api/user/__admin_session.php and random tweaks
This commit is contained in:
@@ -26,6 +26,10 @@ function User_Create ($login, $password, $email = null, $invite_id = null, $avat
|
||||
if (ThisFileIsRequested(__FILE__)) {
|
||||
require_once("../_json.php");
|
||||
|
||||
// Dirty hack for debugging purposes. Will be removed later
|
||||
if ($Config["debug"])
|
||||
$_POST = $_REQUEST;
|
||||
|
||||
// If registration turned off
|
||||
if (!$Config["registration"]["active"]) {
|
||||
ReturnJSONError($Err_DP_RegClosed, "registrations are closed");
|
||||
|
||||
Reference in New Issue
Block a user