testing input field for email and password for email system

This commit is contained in:
Jordan
2026-06-25 09:21:21 +12:00
parent 530a5a6f5b
commit defea0805f
2 changed files with 21 additions and 6 deletions
+2
View File
@@ -3,6 +3,8 @@ Math website
to access list of all users in the database go to to access list of all users in the database go to
http://127.0.0.1:5000/users 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 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 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
+16 -3
View File
@@ -8,6 +8,19 @@ from sqlalchemy.exc import IntegrityError
app = Flask(__name__) 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_DATABASE_URI'] = 'sqlite:///accounts.db'
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
app.secret_key = 'this key is so secret noone will ever get it 👌' app.secret_key = 'this key is so secret noone will ever get it 👌'
@@ -82,12 +95,12 @@ def view_users():
return html_output 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 #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_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
#app.config['MAIL_USERNAME'] = '' # app.config['MAIL_USERNAME'] = email
#app.config['MAIL_PASSWORD'] = '' # app.config['MAIL_PASSWORD'] = password