From 05e7c627db148f31755bd5db73a7725150910bf0 Mon Sep 17 00:00:00 2001 From: ralphi3 Date: Mon, 22 Jun 2026 11:14:24 +1200 Subject: [PATCH] 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 --- app.py | 7 +++++++ templates/404.html | 6 ++++++ templates/about.html | 10 ---------- templates/resetpassword.html | 4 ++++ templates/signin.html | 3 ++- 5 files changed, 19 insertions(+), 11 deletions(-) create mode 100644 templates/404.html create mode 100644 templates/resetpassword.html diff --git a/app.py b/app.py index aa12c35..de29c5f 100644 --- a/app.py +++ b/app.py @@ -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) diff --git a/templates/404.html b/templates/404.html new file mode 100644 index 0000000..3755915 --- /dev/null +++ b/templates/404.html @@ -0,0 +1,6 @@ +{% extends 'base.html' %} +{% block content %} +

Oops! Page Not Found (404)

+

The page you are looking for does not exist.

+

Return to home page by click the home button on the top left of this page

+{% endblock %} \ No newline at end of file diff --git a/templates/about.html b/templates/about.html index ab3db9c..71385fe 100644 --- a/templates/about.html +++ b/templates/about.html @@ -1,14 +1,4 @@ {% extends 'base.html' %} - {% block content %} - - - - About - - -

About this website

- - {% endblock %} \ No newline at end of file diff --git a/templates/resetpassword.html b/templates/resetpassword.html new file mode 100644 index 0000000..9a96079 --- /dev/null +++ b/templates/resetpassword.html @@ -0,0 +1,4 @@ +{% extends 'base.html' %} +{% block content %} +

Work in progress

+{% endblock %} \ No newline at end of file diff --git a/templates/signin.html b/templates/signin.html index ab8f5f7..a73ddfb 100644 --- a/templates/signin.html +++ b/templates/signin.html @@ -21,6 +21,7 @@

-

Don't have an account? Create one

+

Don't have an account? Create one

+

Forgot password? Reset Password

{% endblock %} \ No newline at end of file