From defea0805f8133877f2e6b498c9ee92935c6aa6b Mon Sep 17 00:00:00 2001 From: Jordan Date: Thu, 25 Jun 2026 09:21:21 +1200 Subject: [PATCH] testing input field for email and password for email system --- README.md | 2 ++ app.py | 25 +++++++++++++++++++------ 2 files changed, 21 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index e18b064..6df2d3a 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,8 @@ Math website to access list of all users in the database go to http://127.0.0.1:5000/users +working on email system for reseting password but isnt working at the moment and can break the website if uncommented and ran + only works on device local not local network or with a public ip and port forwarding working to fix this 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 diff --git a/app.py b/app.py index 4b2691d..623664f 100644 --- a/app.py +++ b/app.py @@ -8,6 +8,19 @@ from sqlalchemy.exc import IntegrityError app = Flask(__name__) +email_option = str(0) +email = str(0) +password = str(0) + +# with app.app_context(): +# print("--- Server Initialization ---") +# response = input("Set the email and password type 'skip' to skip this: ") +# if response.lower() != "skip": +# email = input("Enter your email") +# password = input("Enter your emails password") +# print(f"Server started. Current role is: {email}\n") + + app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///accounts.db' app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False app.secret_key = 'this key is so secret noone will ever get it 👌' @@ -82,12 +95,12 @@ def view_users(): return html_output -#Mail system uncomment all of this to use but requires a google account to use will have to put email in username area and password well in password area -#app.config['MAIL_SERVER'] = 'smtp.google.com' -#app.config['MAIL_PORT'] = 587 -#app.config['MAIL_USE_TLS'] = True -#app.config['MAIL_USERNAME'] = '' -#app.config['MAIL_PASSWORD'] = '' +#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 +# app.config['MAIL_SERVER'] = 'smtp.google.com' +# app.config['MAIL_PORT'] = 587 +# app.config['MAIL_USE_TLS'] = True +# app.config['MAIL_USERNAME'] = email +# app.config['MAIL_PASSWORD'] = password