mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-03-30 23:03:03 -07:00
@@ -386,7 +386,7 @@ def importConfigs(pm, db, all_plugins):
|
||||
)
|
||||
conf.SYNC_node_name = ccd(
|
||||
"SYNC_node_name",
|
||||
"NAX-" + str(uuid.uuid4()).split("-")[0],
|
||||
"NAX-" + str(uuid.uuid4()).split('-')[0],
|
||||
c_d,
|
||||
"Sync node name",
|
||||
'{"dataType": "string","elements": [{"elementType": "input","elementHasInputValue": 1,"elementOptions": [{ "cssClasses": "col-xs-12" }],"transformers": []},{"elementType": "button","elementOptions": [{ "getStringKey": "Gen_Generate" },{ "customParams": "SYNC_node_name" },{ "onClick": "generateNaxNodeName(this)" },{ "cssClasses": "col-xs-12" }],"transformers": []}]}', # noqa: E501 - inline JSON
|
||||
@@ -746,7 +746,7 @@ replacements = {
|
||||
r"\bREPORT_TO\b": "SMTP_REPORT_TO",
|
||||
r"\bSYNC_api_token\b": "API_TOKEN",
|
||||
r"\bAPI_TOKEN=\'\'": f"API_TOKEN='t_{generate_random_string(20)}'",
|
||||
r"\bSYNC_node_name=\'\'": f"SYNC_node_name='NAX-{str(uuid.uuid4()).split("-")[0]}'",
|
||||
r"\bSYNC_node_name=\'\'": f"SYNC_node_name='NAX-{str(uuid.uuid4()).split('-')[0]}'",
|
||||
# Detect SMTP_PASS='anything' BUT not starting with base64:
|
||||
r"SMTP_PASS='(?!base64:)([^']*)'": r"SMTP_PASS='base64:\1'",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user