Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

Commit

Permalink
dev : form login 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Reight123 committed Mar 24, 2024
1 parent 8343044 commit 8a34ab0
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 18 deletions.
Binary file modified database/database.sqlite
Binary file not shown.
40 changes: 22 additions & 18 deletions resources/views/login_view.blade.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<div>
<div id="login">
<form action="" method="post" class="login">
<form action="/auth/login" method="post" class="login">
@csrf
<div class="login">
<label for="name">pseudo: </label>
<label for="name">Pseudo: </label>
<input type="text" name="name" class="name" required />
</div>
<div class="login">
<label for="password">mot de passe: </label>
<label for="password">Mot de passe: </label>
<input type="password" name="password" class="password" required />
</div>
<div class="login">
Expand All @@ -16,45 +16,49 @@
</form>
</div>
<div id="subscription">
<form action="" method="post" class="subscription">
<form action="/auth/register" method="post" class="subscription">
@csrf
<div class="subscription">
<label for="name">pseudo: </label>
<label for="name">Pseudo: </label>
<input type="text" name="name" class="name" required />
</div>
<div class="subscription">
<label for="email">email: </label>
<label for="email">Email: </label>
<input type="email" name="email" class="email" required />
</div>
<div class="subscription">
<label for="first_name">prénom: </label>
<label for="first_name">Prénom: </label>
<input type="first_name" name="first_name" class="first_name" />
</div>
<div class="subscription">
<label for="last_name">nom: </label>
<label for="last_name">Nom: </label>
<input type="text" name="last_name" class="last_name" />
</div>
<div class="subscription">
<label for="birth">date de naissance: </label>
<label for="birth">Date de naissance: </label>
<input type="text" name="birth" class="birth" />
</div>
<div class="subscription">
<legend>genre: </legend>
<label for="male">Homme </label>
<input type="radio" name="male" class="gender" />
<label for="female">Femme </label>
<input type="radio" name="female" class="gender" />
<label for="other">Autre </label>
<input type="radio" name="other" class="gender" />
<label for="gender">Homme </label>
<input type="radio" name="gender" value="male" class="gender" />
<label for="gender">Femme </label>
<input type="radio" name="gender" value="female" class="gender" />
<label for="gender">Autre </label>
<input type="radio" name="gender" value="other" class="gender" />
</div>
<div class="subscription">
<label for="profession">métier: </label>
<label for="profession">Métier: </label>
<input type="text" name="profession" class="profession" />
</div>
<div class="login">
<label for="password">mot de passe: </label>
<div class="subscription">
<label for="password">Mot de passe: </label>
<input type="password" name="password" class="password" required />
</div>
<div class="subcription">
<label for="password_confirmation">Confirmation du mot de passe: </label>
<input type="password" name="password_confirmation" class="password" required />
</div>
<div class="subscription">
<input type="submit" value="Inscription" />
</div>
Expand Down
5 changes: 5 additions & 0 deletions routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@
return view('welcome');
});

Route::get('/login', function () {
return view('login_view');
});


Route::post("/auth/login", [AuthController::class, "login"]);
Route::post("/auth/logout", [AuthController::class, "logout"]);
Route::post("/auth/register", [AuthController::class, "register"]);

0 comments on commit 8a34ab0

Please sign in to comment.