Actualiser register.php
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user