addd password recovery
This commit is contained in:
14
templates/connected.html
Normal file
14
templates/connected.html
Normal file
@ -0,0 +1,14 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>PyMenu</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>connected</h1>
|
||||
<h2>Welcome to FlaskApp!</h2>
|
||||
<a href="/logout">
|
||||
<input type="button" value="logout">
|
||||
</a>
|
||||
</body>
|
||||
</html>
|
16
templates/error.html
Normal file
16
templates/error.html
Normal file
@ -0,0 +1,16 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>PyMenu</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Error</h1>
|
||||
{% if error %}
|
||||
<h2>{{error}}</h2>
|
||||
{% endif %}
|
||||
<a href="/">
|
||||
<input type="button" value="Revenir a l'acceuil">
|
||||
</a>
|
||||
</body>
|
||||
</html>
|
83
templates/forgot.html
Normal file
83
templates/forgot.html
Normal file
@ -0,0 +1,83 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" href="index.css" />
|
||||
<title>Beyond School</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="container">
|
||||
<form method="post">
|
||||
<h2>Mot de passe oublié ?</h2>
|
||||
<label><b>Email :</b></label>
|
||||
<input type="email" name="email" placeholder="Insérez votre email" required>
|
||||
<br>
|
||||
{% if error %}
|
||||
<p>{{error}}</p>
|
||||
{% endif %}
|
||||
<input type="submit" value="Valider">
|
||||
<a href="/login">
|
||||
<input type="button" value="connection">
|
||||
</a>
|
||||
</form>
|
||||
</div>
|
||||
<style>
|
||||
body{
|
||||
background: #67BE4B;
|
||||
}
|
||||
#container{
|
||||
width:400px;
|
||||
margin:0 auto;
|
||||
margin-top:10%;
|
||||
}
|
||||
/* Bordered form */
|
||||
form {
|
||||
width:100%;
|
||||
padding: 40px;
|
||||
border: 1px solid #f1f1f1;
|
||||
background: #fff;
|
||||
box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2), 0 5px 5px 0 rgba(0, 0, 0, 0.24);
|
||||
}
|
||||
#container h2{
|
||||
width: 38%;
|
||||
margin: 0 auto;
|
||||
padding-bottom: 10px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* Full-width inputs */
|
||||
input[type=email], input[type=password], input[type=number] {
|
||||
width: 100%;
|
||||
padding: 12px 20px;
|
||||
margin: 8px 0;
|
||||
display: inline-block;
|
||||
border: 1px solid #ccc;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/* Set a style for all buttons */
|
||||
input[type=submit], input[type=button] {
|
||||
background-color: #53af57;
|
||||
color: white;
|
||||
padding: 14px 20px;
|
||||
margin: 8px 0;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
width: 100%;
|
||||
}
|
||||
input[type=submit]:hover {
|
||||
background-color: white;
|
||||
color: #53af57;
|
||||
border: 1px solid #53af57;
|
||||
}
|
||||
h6 {
|
||||
float: right;
|
||||
}
|
||||
p {
|
||||
color: red;
|
||||
}
|
||||
</style>
|
||||
</body>
|
||||
</html>
|
76
templates/mails/password_recovery.html
Normal file
76
templates/mails/password_recovery.html
Normal file
@ -0,0 +1,76 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" href="index.css" />
|
||||
<title>Beyond School</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="container">
|
||||
<form method="post">
|
||||
<h2>Mot de passe oublié ?</h2>
|
||||
<a href="http://localhost:5000/reset/{{code}}">
|
||||
<input type="button" value="connection">
|
||||
</a>
|
||||
</form>
|
||||
</div>
|
||||
<style>
|
||||
body{
|
||||
background: #67BE4B;
|
||||
}
|
||||
#container{
|
||||
width:400px;
|
||||
margin:0 auto;
|
||||
margin-top:10%;
|
||||
}
|
||||
/* Bordered form */
|
||||
form {
|
||||
width:100%;
|
||||
padding: 40px;
|
||||
border: 1px solid #f1f1f1;
|
||||
background: #fff;
|
||||
box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2), 0 5px 5px 0 rgba(0, 0, 0, 0.24);
|
||||
}
|
||||
#container h2{
|
||||
width: 38%;
|
||||
margin: 0 auto;
|
||||
padding-bottom: 10px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* Full-width inputs */
|
||||
input[type=email], input[type=password], input[type=number] {
|
||||
width: 100%;
|
||||
padding: 12px 20px;
|
||||
margin: 8px 0;
|
||||
display: inline-block;
|
||||
border: 1px solid #ccc;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/* Set a style for all buttons */
|
||||
input[type=submit], input[type=button] {
|
||||
background-color: #53af57;
|
||||
color: white;
|
||||
padding: 14px 20px;
|
||||
margin: 8px 0;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
width: 100%;
|
||||
}
|
||||
input[type=submit]:hover {
|
||||
background-color: white;
|
||||
color: #53af57;
|
||||
border: 1px solid #53af57;
|
||||
}
|
||||
h6 {
|
||||
float: right;
|
||||
}
|
||||
p {
|
||||
color: red;
|
||||
}
|
||||
</style>
|
||||
</body>
|
||||
</html>
|
83
templates/reset.html
Normal file
83
templates/reset.html
Normal file
@ -0,0 +1,83 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" href="index.css" />
|
||||
<title>Beyond School</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="container">
|
||||
<form name="signin" method="post">
|
||||
<h2>Connection</h2>
|
||||
<label><b>Email :</b></label>
|
||||
<input type="email" name="email" placeholder={{email}} disabled=true>
|
||||
<br>
|
||||
<label><b>Mot de passe :</b></label>
|
||||
<input type="password" name="password" placeholder="Insérez votre mot de passe" required>
|
||||
<br>
|
||||
<label><b>Mot de passe :</b></label>
|
||||
<input type="password" name="repassword" placeholder="Insérez votre mot de passe" required>
|
||||
<br>
|
||||
<input type="submit" value="Changer de mot de passe">
|
||||
</form>
|
||||
</div>
|
||||
<style>
|
||||
body{
|
||||
background: #67BE4B;
|
||||
}
|
||||
#container{
|
||||
width:400px;
|
||||
margin:0 auto;
|
||||
margin-top:10%;
|
||||
}
|
||||
/* Bordered form */
|
||||
form {
|
||||
width:100%;
|
||||
padding: 40px;
|
||||
border: 1px solid #f1f1f1;
|
||||
background: #fff;
|
||||
box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2), 0 5px 5px 0 rgba(0, 0, 0, 0.24);
|
||||
}
|
||||
#container h2{
|
||||
width: 38%;
|
||||
margin: 0 auto;
|
||||
padding-bottom: 10px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* Full-width inputs */
|
||||
input[type=email], input[type=password], input[type=number] {
|
||||
width: 100%;
|
||||
padding: 12px 20px;
|
||||
margin: 8px 0;
|
||||
display: inline-block;
|
||||
border: 1px solid #ccc;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/* Set a style for all buttons */
|
||||
input[type=submit], input[type=button] {
|
||||
background-color: #53af57;
|
||||
color: white;
|
||||
padding: 14px 20px;
|
||||
margin: 8px 0;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
width: 100%;
|
||||
}
|
||||
input[type=submit]:hover {
|
||||
background-color: white;
|
||||
color: #53af57;
|
||||
border: 1px solid #53af57;
|
||||
}
|
||||
h6 {
|
||||
float: right;
|
||||
}
|
||||
p {
|
||||
color: red
|
||||
}
|
||||
</style>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user