Actualiser register.php

This commit is contained in:
2026-05-27 07:37:51 +00:00
parent 2e91010786
commit a54fe27cdc

View File

@@ -18,7 +18,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
$hash = password_hash($password, PASSWORD_DEFAULT);
$users[$username] = [
'password' => $hash,
'role' => 'User'
'role' => 'User',
'statut' => 'en_attente'
];
file_put_contents($usersFile, json_encode($users, JSON_PRETTY_PRINT));
header("Location: login.php?registered=1");