Add login

This commit is contained in:
marc-go
2026-02-16 18:56:12 +01:00
parent 6dee5a73f5
commit e2a525964d
5 changed files with 19 additions and 6 deletions

View File

@@ -1,3 +1,10 @@
<?php
if ($_SERVER["REQUEST_METHOD"] == "POST") {
if (!isset($_POST["username"]) || !isset($_GET["passwd"])) {
die("Username or Password are missing");
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
@@ -15,7 +22,7 @@
<div class="content">
<form action="/api/setup/setup.php" method="post">
<div id="admin_user" class="page">
<a href="/resetpasswd.php">Forget Passwort</a>
<a href="/resetpasswd.php">Forget Passwort?</a>
<input type="text" name="username" placeholder="Username" id="user" required><br><br>
<input type="password" name="passwd" placeholder="Password" id="passwd" required><br><br>