mirror of
https://codeberg.org/Mo8it/AdvLabDB.git
synced 2024-12-20 23:41:20 +00:00
Modify SECURITY config
This commit is contained in:
parent
38e081df04
commit
67e477a92e
1 changed files with 14 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue