404 page button for reseting password just isnt actually setup yet so just goes to a wip page and a bit more cleaning on html files
This commit is contained in:
@@ -115,5 +115,12 @@ def signup():
|
||||
def all_users():
|
||||
return render_template('all_users.html')
|
||||
|
||||
@app.errorhandler(404)
|
||||
def page_not_found(e):
|
||||
return render_template('404.html'), 404
|
||||
|
||||
@app.route('/resetpassword')
|
||||
def resetpassword():
|
||||
return render_template('resetpassword.html')
|
||||
if __name__ == '__main__':
|
||||
app.run(debug=True)
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
{% extends 'base.html' %}
|
||||
{% block content %}
|
||||
<h1>Oops! Page Not Found (404)</h1>
|
||||
<p>The page you are looking for does not exist.</p>
|
||||
<p>Return to home page by click the home button on the top left of this page</p>
|
||||
{% endblock %}
|
||||
@@ -1,14 +1,4 @@
|
||||
{% extends 'base.html' %}
|
||||
|
||||
{% block content %}
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>About</title>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
</head>
|
||||
<body>
|
||||
<h1>About this website</h1>
|
||||
</body>
|
||||
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,4 @@
|
||||
{% extends 'base.html' %}
|
||||
{% block content %}
|
||||
<h2>Work in progress</h2>
|
||||
{% endblock %}
|
||||
@@ -21,6 +21,7 @@
|
||||
<input type="password" id="password" name="password" required><br><br>
|
||||
|
||||
<button type="submit" style="font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif; border-color: gray; border-radius: 4px; border-width: 4px; margin-bottom: 20px;">Sign In</button>
|
||||
<p>Don't have an account? <a href="{{ url_for('signup') }}">Create one</a></p>
|
||||
<p>Don't have an account? <a style="text-decoration: none;" href="{{ url_for('signup') }}">Create one</a></p>
|
||||
<p>Forgot password? <a style="text-decoration: none;" href="{{ url_for('resetpassword') }}">Reset Password</a></p>
|
||||
</form>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user