From 1012c41c226938aaa4ce2a0cd910382db20c2131 Mon Sep 17 00:00:00 2001 From: Jordan Date: Tue, 28 Jul 2026 11:59:30 +1200 Subject: [PATCH] Changed reseting page added emailcode page and new password page will need to make more secure all just placeholders atm so its fine --- README.md | 7 ++++--- app.py | 10 +++++++++- instance/accounts.db | Bin 16384 -> 0 bytes templates/bivariate.html | 24 +----------------------- templates/newpassword.html | 27 +++++++++++++++++++++++++++ templates/resetpassword.html | 4 ++-- templates/resetpasswordcode.html | 26 ++++++++++++++++++++++++++ 7 files changed, 69 insertions(+), 29 deletions(-) delete mode 100644 instance/accounts.db create mode 100644 templates/newpassword.html create mode 100644 templates/resetpasswordcode.html diff --git a/README.md b/README.md index 71f5773..cfc8c25 100644 --- a/README.md +++ b/README.md @@ -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 -done +Made singup system, signin system, @@ -22,13 +22,14 @@ database to store accounts ------------------------------------------------------------------------------ -not done +Not Made information, quizzes, formulas, good looking pages reseting password +guides Guide to running @@ -37,4 +38,4 @@ git clone https://git.ralphie.xyz/Jordan/math-website.git cd math-website python3 ./app.py -Then go to http://localhost:5000 +Then go to http://localhost:5000 \ No newline at end of file diff --git a/app.py b/app.py index 777a9e2..df08a9b 100644 --- a/app.py +++ b/app.py @@ -95,7 +95,7 @@ def view_users(): 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_PORT'] = 587 # app.config['MAIL_USE_TLS'] = True @@ -177,5 +177,13 @@ def page_not_found(e): @app.route('/resetpassword') def resetpassword(): 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__': app.run(debug=True) diff --git a/instance/accounts.db b/instance/accounts.db deleted file mode 100644 index 9babad22dec8e53922cb9b39560f1f4a9f7b02c2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 16384 zcmeI&O>fgM7zc2toyJ;e3qq=T^%bSltEh5Pthwv+gI634%rqrB*}l6g$kWI7UaYLVMS)5syEgpgd? zHqy2%T6%K*dKp`H%#njH)ouL;$?sf{oeTY&{&ig{#vuR!2tWV=5P$##AOHafKmY=N z6F3*zt#YZPeZD&v;V?d%#nY_ijsoB7`n2mkZ22@Bp_O7GiDR!9q>G`y>e1(<4#kAF8buYhJzF*QvGLGW+v$w-^%ib4f^U316pWWJL zS--KD`)8t=CFWDntxR=0ZJO?pw4y)&0uX=z1Rwwb2tWV=5P$##Ah1s0{DHPf%KM)> zA{r&*MR&O959DMtlhY5U^M=J-hc|e`+`(y;~VuVwvQ*luB!2xWxB2*>miG| zP*!N$78f;B)f5YvP|USLlSwyJwxNs~i)_i1Yg#Opu5{eGWRbx`JL0^qBA44rG0Uhk zY0Hq+97kHFQBUVkOva88E7KAVXKp08V<}4&({*Y3cal~V2tWV=5P$##AOHafKmY;| zfB*z;mcUlNTv&XixZ3|;68-XKEfA}L00bZa0SG_<0uX=z1Rwwb2>iDKck=sJyZ+yQ GDEtHwyQu^K diff --git a/templates/bivariate.html b/templates/bivariate.html index eb6f72a..de0cb4f 100644 --- a/templates/bivariate.html +++ b/templates/bivariate.html @@ -1,33 +1,11 @@ {% extends 'base.html' %} {% block content %} -

Information on bivariate data Analysis

information

- +
diff --git a/templates/newpassword.html b/templates/newpassword.html new file mode 100644 index 0000000..d9cf61b --- /dev/null +++ b/templates/newpassword.html @@ -0,0 +1,27 @@ +{% extends 'base.html' %} +{% block content %} + + +

Enter your new password

+

This page is just a placeholder at the moment not functional

+

Enter new password:

+

Enter new password again

+Change +{% endblock %} \ No newline at end of file diff --git a/templates/resetpassword.html b/templates/resetpassword.html index 48cfe89..88a37f3 100644 --- a/templates/resetpassword.html +++ b/templates/resetpassword.html @@ -11,7 +11,7 @@ border-radius: 4px; } - button{ + .button{ margin-left: 250px; } @@ -22,5 +22,5 @@

Forgotten you password just enter your email below and you'll be sent a link to reset your password

This page is just a placeholder at the moment not functional

Enter email here:

- +Send reset email {% endblock %} \ No newline at end of file diff --git a/templates/resetpasswordcode.html b/templates/resetpasswordcode.html new file mode 100644 index 0000000..60df616 --- /dev/null +++ b/templates/resetpasswordcode.html @@ -0,0 +1,26 @@ +{% extends 'base.html' %} +{% block content %} + + +

Forgotten you password just enter the code that was sent to you via email

+

This page is just a placeholder at the moment not functional

+

Enter code recieved in email:

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