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

@@ -10,7 +10,7 @@ body {
.page-content {
padding: 10px;
width: 350px;
height: 625px;
height: 425px;
text-align: center;
box-shadow: 0 2px 100px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.1);
border-radius: 30pt;
@@ -46,6 +46,11 @@ h2 {
font-size: 20pt;
}
a {
text-decoration: none;
color: #000000;
}
input {
border: 1px solid #e0e0e0;
width: 200px;
@@ -59,7 +64,7 @@ input {
input:focus {
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10pxr);
-webkit-backdrop-filter: blur(10px);
outline: none;
}

View File

@@ -63,7 +63,7 @@ input {
input:focus {
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10pxr);
-webkit-backdrop-filter: blur(10px);
outline: none;
}

View File

@@ -25,4 +25,3 @@ if (!$mcServ->checkLogin()) {
}else{
echo "angemeldet";
}
?>

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>

View File

@@ -1,2 +1,4 @@
<?php
echo __DIR__;
foreach ($_SERVER as $key => $value) {
echo $key . " = " . $value . "<br>";
}