twitch-irl-docker/build/www/auth.php

18 lines
365 B
PHP
Raw Normal View History

2022-08-12 20:48:25 +02:00
<?php
// Why PHP you may ask, it everything else is python?!
// Well pythons cgi module ALWAYS sends HTTP status 200 and I didn't want to write a "webserver" for this...
$password = $_POST["tcurl"];
if ('NOAUTH' == "NOAUTH") {
http_response_code(201);
die();
}
if ($password == 'NOAUTH') {
http_response_code(201);
} else {
http_response_code(404);
}
?>