1
0
Fork 0
mirror of https://codeberg.org/Mo8it/AdvLabDB.git synced 2024-09-19 18:31:16 +00:00

Added Logout Button

This commit is contained in:
Mo 2021-06-28 18:43:13 +02:00
parent f840bd4b20
commit f971c0811f
2 changed files with 7 additions and 0 deletions

View file

@ -5,8 +5,13 @@ from flask_security.models import fsqla_v2 as fsqla
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__)
app.debug = True # DEBUG
app.config["SECURITY_EMAIL_VALIDATOR_ARGS"] = {
"check_deliverability": False
} # Don't check email deliverability # DEBUG
app.config["SERVER_NAME"] = "127.0.0.1:5000" # DEBUG
app.config["SECRET_KEY"] = "dev"

View file

@ -412,3 +412,5 @@ with app.app_context():
category="Active semester",
)
)
admin.add_link(MenuLink(name="Logout", url=url_for("security.logout")))