forked from BrahimiRayan/Shifa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathforgotDoc.ejs
81 lines (75 loc) · 3.39 KB
/
forgotDoc.ejs
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" href="img/h.png" type="image/png">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-giJF6kkoqNQ00vy+HMDP7azOuL0xtbfIcaT9wjKHr8RbDVddVHyTfAAsrekwKmP1" crossorigin="anonymous">
<!-- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.3.0/font/bootstrap-icons.css"> -->
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css"
/>
<link rel="stylesheet" href="css/forgot.css" />
<title>Authentification</title>
</head>
<body>
<a href="/"><section class="section_logo">
<h1 class="logo">Shifa logo</h1></a>
<span>votre sante en ligne</span>
</section>
<% if (emailNotfound) { %>
<div class="modal fade" id="alertModal" tabindex="-1" role="dialog" aria-labelledby="alertModalLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content danger">
<div class="modal-header">
<h5 class="modal-title" id="alertModalLabel">Erreur</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<%= emailNotfound %>
</div>
</div>
</div>
</div>
<% } %>
<main>
<h2>Vous avez oblieer votre<strong> Mot de pass </strong>?</h2>
<label for="email" style=<%= form1 %>>Email:</label>
<form action="/Dforgotpswd" method="post" style=<%= form1 %>>
<input type="text" id="email" name="email" placeholder="Votre email (email de votre compte)">
<a href="/auth">vous sevienez?</a>
<button type="submit" class="btn btn-primary btn-costum">
<i class="fas fa-arrow-right"></i>
</button>
</form>
<label for="code" style=<%= form2 %>>Code:</label>
<!-- it should be hidden until the user send his email -->
<form action="/Dforgotpswd/config" method="post" style=<%= form2 %>>
<input type="text" id="code" name="code" placeholder="Voir votre email box" autocomplete="off">
<a href="/auth">vous sevienez?</a>
<button type="submit" class="btn btn-primary btn-costum">
<i class="fas fa-arrow-right"></i>
</button>
</form>
<label for="code" style=<%= form3 %>>Noveux Mot de Pass:</label>
<form action="/Dforgotpswd/config/changepswd" method="post" style=<%= form3 %>>
<input type="text" id="new" name="newpassword" placeholder="le noveux password ici " minlength="8" autocomplete="off">
<a href="/auth">vous sevienez?</a>
<button type="submit" class="btn btn-primary btn-costum">VALIDER</button>
</form>
</main>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/js/bootstrap.bundle.min.js"
integrity="sha384-ygbV9kiqUc6oa4msXn9868pTtWMgiQaeYH7/t7LECLbyPA2x65Kgf80OJFdroafW"
crossorigin="anonymous"></script>
<script>
document.addEventListener("DOMContentLoaded", function() {
var myModal = new bootstrap.Modal(document.getElementById('alertModal'), {
keyboard: false
});
myModal.show();
});
</script>
</body>
</html>