Add password type for settings
This commit is contained in:
parent
d83d3aa3d9
commit
dd0f56bb0c
|
@ -38,7 +38,7 @@
|
|||
"id": "antibot-session-secret",
|
||||
"label": "Antibot Session secret",
|
||||
"regex": "^(random|\\w+)$",
|
||||
"type": "text"
|
||||
"type": "password"
|
||||
},
|
||||
"ANTIBOT_SESSION_NAME": {
|
||||
"context": "global",
|
||||
|
@ -74,7 +74,7 @@
|
|||
"id": "antibot-recaptcha-secret",
|
||||
"label": "reCAPTCHA secret",
|
||||
"regex": "^[\\w-]*$",
|
||||
"type": "text"
|
||||
"type": "password"
|
||||
},
|
||||
"ANTIBOT_HCAPTCHA_SITEKEY": {
|
||||
"context": "multisite",
|
||||
|
@ -92,7 +92,7 @@
|
|||
"id": "antibot-hcaptcha-secret",
|
||||
"label": "hCaptcha secret",
|
||||
"regex": "^(0x[a-zA-Z0-9]+)?$",
|
||||
"type": "text"
|
||||
"type": "password"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
"id": "auth-basic-password",
|
||||
"label": "Password",
|
||||
"regex": "^.+",
|
||||
"type": "text"
|
||||
"type": "password"
|
||||
},
|
||||
"AUTH_BASIC_TEXT": {
|
||||
"context": "multisite",
|
||||
|
|
|
@ -15,7 +15,9 @@ from sqlalchemy.orm import declarative_base, relationship
|
|||
from sqlalchemy.schema import UniqueConstraint
|
||||
|
||||
CONTEXTS_ENUM = Enum("global", "multisite", name="contexts_enum")
|
||||
SETTINGS_TYPES_ENUM = Enum("text", "check", "select", name="settings_types_enum")
|
||||
SETTINGS_TYPES_ENUM = Enum(
|
||||
"password", "text", "check", "select", name="settings_types_enum"
|
||||
)
|
||||
METHODS_ENUM = Enum("ui", "scheduler", "autoconf", "manual", name="methods_enum")
|
||||
SCHEDULES_ENUM = Enum("once", "minute", "hour", "day", "week", name="schedules_enum")
|
||||
CUSTOM_CONFIGS_TYPES_ENUM = Enum(
|
||||
|
|
Loading…
Reference in New Issue