testing input field for email and password for email system
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user