diff --git a/login.php b/login.php index 998e816..ad1e89f 100644 --- a/login.php +++ b/login.php @@ -3,6 +3,11 @@ session_start(); $usersFile = 'users.json'; $users = file_exists($usersFile) ? json_decode(file_get_contents($usersFile), true) : []; $message = ''; +$success = ''; + +if (isset($_GET['registered'])) { + $success = "Compte créé avec succès ! Connectez-vous."; +} if ($_SERVER['REQUEST_METHOD'] === 'POST') { $username = trim($_POST['username']); @@ -19,9 +24,36 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { } include 'include/header.php'; +?> -$action = 'login.php'; -$buttonText = 'Se connecter'; -include 'form_login_register.php'; +
+

Connexion

+ +

+ + +

+ +
+ + -include 'include/footer.php'; \ No newline at end of file + +
+ + +
+ + +
+ +
+ + + + \ No newline at end of file