-
Notifications
You must be signed in to change notification settings - Fork 0
/
newPassword.php
40 lines (40 loc) · 1.61 KB
/
newPassword.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
session_start();
include "header.php";
?>
<div class="col-md-11 mx-auto mt-5">
<div class="mt-5">
<h5 class="mx-auto" id="changePassword">Définir mon mot de passe</h5>
<div>
<?php
if (isset($_SESSION["errors"])) {
echo "<div class='alert alert-danger'>";
foreach ($_SESSION["errors"] as $error) {
echo "<li>" . $error;
}
echo "</div>";
}
unset($_SESSION["errors"]);
?>
</div>
<form class="col-md-11 mx-auto mt-5" action="./functions/setPassword.php" method="POST">
<div class="input-group flex-nowrap mt-1 col-md-5 mx-auto">
<div class="input-group-prepend">
<span class="input-group-text">Nouveau Mot de passe</span>
</div>
<input class="form-control" type="password" placeholder="Nouveau mot de passe" name="newPassword"
required>
</div>
<div class="input-group flex-nowrap mt-1 col-md-5 mx-auto">
<div class="input-group-prepend">
<span class="input-group-text">Confirmation du Mot de passe</span>
</div>
<input class="form-control" type="password" placeholder="Confirmation du nouveau mot de passe"
name="confirm" required>
</div>
<div class="mt-5 col-md-2 mx-auto">
<button class="btn btn-warning" type="submit">Définir le mot de passe</button>
</div>
</form>
</div>
</div>