diff --git a/register.php b/register.php index 6b798a7..72cd2f4 100644 --- a/register.php +++ b/register.php @@ -17,8 +17,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { } else { $hash = password_hash($password, PASSWORD_DEFAULT); $users[$username] = [ - 'password' => $hash, - 'role' => ($username === 'admin') ? 'Admin' : 'User' + 'password' => $hash, + 'role' => 'User' ]; file_put_contents($usersFile, json_encode($users, JSON_PRETTY_PRINT)); header("Location: login.php?registered=1"); @@ -29,31 +29,31 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { include 'include/header.php'; ?> -
-

Créer un compte

- -

- -
- - +
+

Créer un compte

+ +

+ + + + - -
- - -
+ +
+ + +
- - - -
+ + + +
- + \ No newline at end of file