basics of a password page on startup

This commit is contained in:
2020-06-18 21:34:34 +02:00
parent c4098a8d3d
commit 8c9f3aecd8
5 changed files with 118 additions and 1 deletions

17
api/settings.php Normal file
View File

@ -0,0 +1,17 @@
<?php
require 'Database.php';
$conn = Database::getInstance()->getConnection();
if (isset($_POST['action'])) {
$action = $_POST['action'];
switch ($action) {
case "isPasswordNeeded":
echo '{"password": true}';
break;
case "checkPassword":
break;
}
}