-
Notifications
You must be signed in to change notification settings - Fork 3
/
forget_password.html
49 lines (42 loc) · 2.4 KB
/
forget_password.html
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/png" href="img/icons/logo_icon.png">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="css/mefathim.css">
<title>שכחתי סיסמה</title>
</head>
<body dir="rtl" onload="check_params()">
<div class="container">
<h2 style="margin-top: 100px;">איפוס סיסמה</h2>
<p id="title">בלחיצה על 'איפוס סיסמה' ישלח אליך הודעה למייל עם סיסמה חדשה</p>
<a href="login.html"><img src="img/logo.png" id="logo"></a>
<div class="card card-container">
<img id="login_face" class="profile-img-card" src="img/face.png" />
<p id="profile-name" class="profile-name-card"></p>
<form class="form-signin" action="scripts/forget_password.py" method="POST">
<span id="reauth-email" class="reauth-email"></span>
<input type="email" id="email" name="email" class="form-control" placeholder="הכנס אימייל" required>
<center><div id="err"></div></center>
<button class="btn btn-primary" type="submit">איפוס סיסמה</button>
<button class="btn btn-primary" onclick="window.location.href = 'login.html';">ביטול</button>
</form>
</div>
</div>
<script>
function check_params(){
var url_string = window.location.href;
var url = new URL(url_string);
if (url.searchParams.get("err") == "1"){
document.getElementById('err').innerHTML = "הפעולה נכשלה נסה שוב!";
}else{
document.getElementById('err').innerHTML = url.searchParams.get("err");
}
}
</script>
</body>
</html>