1
0
Fork 0
mirror of https://codeberg.org/Mo8it/AdvLabDB.git synced 2024-11-08 21:21:06 +00:00

Modify SECURITY config

This commit is contained in:
Mo 2022-05-29 19:19:59 +02:00
parent 38e081df04
commit 67e477a92e

View file

@ -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