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
+19 -6
View File
@@ -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