Create base login page

This commit is contained in:
2025-01-31 11:48:40 +01:00
parent 5f2cb0d8e0
commit a177bec498
4 changed files with 310 additions and 0 deletions

12
js_login/src/script.js Normal file
View File

@@ -0,0 +1,12 @@
const form = document.getElementById("loginForm");
form.addEventListener("submit", (e) => {
e.preventDefault();
const email = document.getElementById("email").value;
const password = document.getElementById("password").value;
if (email === "sesame@ouvretoi.com" && password === "topsecret")
location.href = "/flag.txt";
else
alert("Identifiants incorrects, veuillez réessayer !");
})