Changed reseting page added emailcode page and new password page will need to make more secure all just placeholders atm so its fine
This commit is contained in:
@@ -13,7 +13,7 @@ only works on device local not local network or with a public ip and port forwar
|
|||||||
at the moment there is no demo kinda build to test it out but that will be added in the future with the official website demo will just be a less features way to check the website out
|
at the moment there is no demo kinda build to test it out but that will be added in the future with the official website demo will just be a less features way to check the website out
|
||||||
|
|
||||||
|
|
||||||
done
|
Made
|
||||||
|
|
||||||
singup system,
|
singup system,
|
||||||
signin system,
|
signin system,
|
||||||
@@ -22,13 +22,14 @@ database to store accounts
|
|||||||
|
|
||||||
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
||||||
|
|
||||||
not done
|
Not Made
|
||||||
|
|
||||||
information,
|
information,
|
||||||
quizzes,
|
quizzes,
|
||||||
formulas,
|
formulas,
|
||||||
good looking pages
|
good looking pages
|
||||||
reseting password
|
reseting password
|
||||||
|
guides
|
||||||
|
|
||||||
|
|
||||||
Guide to running
|
Guide to running
|
||||||
@@ -37,4 +38,4 @@ git clone https://git.ralphie.xyz/Jordan/math-website.git
|
|||||||
cd math-website
|
cd math-website
|
||||||
python3 ./app.py
|
python3 ./app.py
|
||||||
|
|
||||||
Then go to http://localhost:5000
|
Then go to http://localhost:5000
|
||||||
@@ -95,7 +95,7 @@ def view_users():
|
|||||||
|
|
||||||
return html_output
|
return html_output
|
||||||
|
|
||||||
#Mail system uncomment all of the stuff below this line to use but requires a google account to use will have to put email in username area and password in password area when starting the py file
|
# Mail system uncomment all of the stuff below this line to use but requires a google account to use will have to put email in username area and password in password area when starting the py file
|
||||||
# app.config['MAIL_SERVER'] = 'smtp.google.com'
|
# app.config['MAIL_SERVER'] = 'smtp.google.com'
|
||||||
# app.config['MAIL_PORT'] = 587
|
# app.config['MAIL_PORT'] = 587
|
||||||
# app.config['MAIL_USE_TLS'] = True
|
# app.config['MAIL_USE_TLS'] = True
|
||||||
@@ -177,5 +177,13 @@ def page_not_found(e):
|
|||||||
@app.route('/resetpassword')
|
@app.route('/resetpassword')
|
||||||
def resetpassword():
|
def resetpassword():
|
||||||
return render_template('resetpassword.html')
|
return render_template('resetpassword.html')
|
||||||
|
|
||||||
|
@app.route('/resetpasscode')
|
||||||
|
def resetpasscode():
|
||||||
|
return render_template('resetpasswordcode.html')
|
||||||
|
|
||||||
|
@app.route('/newpassword')
|
||||||
|
def newpassword():
|
||||||
|
return render_template('newpassword.html')
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
app.run(debug=True)
|
app.run(debug=True)
|
||||||
|
|||||||
Binary file not shown.
@@ -1,33 +1,11 @@
|
|||||||
{% extends 'base.html' %}
|
{% extends 'base.html' %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<style>
|
|
||||||
|
|
||||||
.sources {
|
|
||||||
background-color: gray;
|
|
||||||
color: white;
|
|
||||||
text-align: left;
|
|
||||||
height: 200px;
|
|
||||||
width: 1660px;
|
|
||||||
margin-top: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
.sourcescontent{
|
|
||||||
margin-left: 8px;
|
|
||||||
color:white;
|
|
||||||
}
|
|
||||||
|
|
||||||
.mainpart {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
min-height: 80vh;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
<div class="mainpart">
|
<div class="mainpart">
|
||||||
<h1>Information on bivariate data Analysis</h1>
|
<h1>Information on bivariate data Analysis</h1>
|
||||||
|
|
||||||
<div class="information">
|
<div class="information">
|
||||||
<h2>information</h2>
|
<h2>information</h2>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="formulas">
|
<div class="formulas">
|
||||||
|
|||||||
@@ -0,0 +1,27 @@
|
|||||||
|
{% extends 'base.html' %}
|
||||||
|
{% block content %}
|
||||||
|
|
||||||
|
<style>
|
||||||
|
body{
|
||||||
|
margin-left: 500px;
|
||||||
|
margin-top: 80px;
|
||||||
|
margin-right: 500px;
|
||||||
|
border: 3px solid black;
|
||||||
|
padding: 10px;
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.button{
|
||||||
|
margin-left: 250px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.emailbox{
|
||||||
|
margin-left: 170px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<h2>Enter your new password<h2>
|
||||||
|
<p style="color: gray; text-decoration: underline;">This page is just a placeholder at the moment not functional</p>
|
||||||
|
<p class="pass">Enter new password: <input required><br><br></p>
|
||||||
|
<p class="pass">Enter new password again <input required><br><br></p>
|
||||||
|
<a class="button" href="/" style="font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif; border-color: gray; border-radius: 4px; border-width: 4px; border-style: solid; display: inline-block; text-decoration: none; padding: 8px 16px; color: black;">Change</a>
|
||||||
|
{% endblock %}
|
||||||
@@ -11,7 +11,7 @@
|
|||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
button{
|
.button{
|
||||||
margin-left: 250px;
|
margin-left: 250px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -22,5 +22,5 @@
|
|||||||
<h2>Forgotten you password just enter your email below and you'll be sent a link to reset your password</h2>
|
<h2>Forgotten you password just enter your email below and you'll be sent a link to reset your password</h2>
|
||||||
<p style="color: gray; text-decoration: underline;">This page is just a placeholder at the moment not functional</p>
|
<p style="color: gray; text-decoration: underline;">This page is just a placeholder at the moment not functional</p>
|
||||||
<p class="emailbox">Enter email here: <input type="email" id="email" name="email" required><br><br></p>
|
<p class="emailbox">Enter email here: <input type="email" id="email" name="email" required><br><br></p>
|
||||||
<button type="resetpassword" style="font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif; border-color: gray; border-radius: 4px; border-width: 4px;">Send reset email</button>
|
<a class="button" href="/resetpasscode" style="font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif; border-color: gray; border-radius: 4px; border-width: 4px; border-style: solid; display: inline-block; text-decoration: none; padding: 8px 16px; color: black;">Send reset email</a>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
{% extends 'base.html' %}
|
||||||
|
{% block content %}
|
||||||
|
|
||||||
|
<style>
|
||||||
|
body{
|
||||||
|
margin-left: 500px;
|
||||||
|
margin-top: 80px;
|
||||||
|
margin-right: 500px;
|
||||||
|
border: 3px solid black;
|
||||||
|
padding: 10px;
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.button{
|
||||||
|
margin-left: 250px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.emailbox{
|
||||||
|
margin-left: 170px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<h2>Forgotten you password just enter the code that was sent to you via email<h2>
|
||||||
|
<p style="color: gray; text-decoration: underline;">This page is just a placeholder at the moment not functional</p>
|
||||||
|
<p class="emailcode">Enter code recieved in email: <input required><br><br></p>
|
||||||
|
<a class="button" href="/newpassword" style="font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif; border-color: gray; border-radius: 4px; border-width: 4px; border-style: solid; display: inline-block; text-decoration: none; padding: 8px 16px; color: black;">Change</a>
|
||||||
|
{% endblock %}
|
||||||
Reference in New Issue
Block a user