From 67e477a92e6c14b0822881ad380c1945feb8ec58 Mon Sep 17 00:00:00 2001 From: Mo8it Date: Sun, 29 May 2022 19:19:59 +0200 Subject: [PATCH] Modify SECURITY config --- advlabdb/__init__.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/advlabdb/__init__.py b/advlabdb/__init__.py index f993555..0a12986 100644 --- a/advlabdb/__init__.py +++ b/advlabdb/__init__.py @@ -67,6 +67,20 @@ app.config["SECURITY_EMAIL_VALIDATOR_ARGS"] = { } set_from_env(app, "SECURITY_PASSWORD_SALT") app.config["SECURITY_PASSWORD_LENGTH_MIN"] = 15 +app.config["SECURITY_LOGOUT_METHODS"] = ["POST"] # Slightly more secure +# TODO: app.config["SECURITY_LOGIN_USER_TEMPLATE"] = + +# Enable features +app.config["SECURITY_TRACKABLE"] = True + +# Explicitly disable features +app.config["SECURITY_CONFIRMABLE"] = False +app.config["SECURITY_REGISTERABLE"] = False +app.config["SECURITY_RECOVERABLE"] = False +app.config["SECURITY_PASSWORDLESS"] = False +app.config["SECURITY_CHANGEABLE"] = False +app.config["SECURITY_TWO_FACTOR"] = False +app.config["SECURITY_UNIFIED_SIGNIN"] = False try: from . import routes, adminModelViews, assistantModelViews