mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 10:54:52 +00:00
Correct user archive behaviour so when users are archived they can no longer login. Need to add ability for quick disable/enable of user accounts, as using archive as permanent. Refactor "You are not permitted to do that!" wording into a constant instead.
8 lines
250 B
PHP
8 lines
250 B
PHP
<?php
|
|
if($_SERVER['REQUEST_METHOD'] !== "POST"){
|
|
header("HTTP/1.1 405 Method Not Allowed");
|
|
$return_arr['success'] = "False";
|
|
$return_arr['message'] = "Can only send POST requests to this endpoint.";
|
|
echo json_encode($return_arr);
|
|
exit();
|
|
} |