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