From f971c0811f54fe7c9644a102d8d09e092fb06602 Mon Sep 17 00:00:00 2001 From: Mo8it Date: Mon, 28 Jun 2021 18:43:13 +0200 Subject: [PATCH] Added Logout Button --- advlabdb/__init__.py | 5 +++++ advlabdb/modelViews.py | 2 ++ 2 files changed, 7 insertions(+) diff --git a/advlabdb/__init__.py b/advlabdb/__init__.py index 17ade04..a06b21c 100644 --- a/advlabdb/__init__.py +++ b/advlabdb/__init__.py @@ -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" diff --git a/advlabdb/modelViews.py b/advlabdb/modelViews.py index cfbe271..309fc5b 100644 --- a/advlabdb/modelViews.py +++ b/advlabdb/modelViews.py @@ -412,3 +412,5 @@ with app.app_context(): category="Active semester", ) ) + + admin.add_link(MenuLink(name="Logout", url=url_for("security.logout")))