Explorar el Código

new AccountController

andre hace 7 meses
padre
commit
01b9803cea
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      index.php

+ 1 - 1
index.php

@@ -152,7 +152,7 @@ switch ($endpoint) {
         break;
     case 'create':
         error_log("Request user create from " . get_client_ip());
-        if ($requestMethod === 'GET' && !empty($username) && !empty($domain)) {
+        if ($requestMethod === 'POST' && !empty($username) && !empty($domain)) {
             AccountController::create(array_merge($parameters, ['username' => $username, 'domain' => $domain]));
         }
         break;