Add registration configuration fields (fixes registration endpoint)
This commit is contained in:
@@ -11,6 +11,7 @@ cat: str = "/etc/vona/cat.jpg"
|
||||
server_name: str = ""
|
||||
signing_key: str = ""
|
||||
support: dict = {"contacts": []}
|
||||
users_can_register: bool = False
|
||||
|
||||
_CONFIG_PATH = Path("/etc/vona/config.toml")
|
||||
|
||||
@@ -112,6 +113,10 @@ def _apply_config(cfg: dict) -> None:
|
||||
support_obj["contacts"].append(contact)
|
||||
else:
|
||||
_warn("No support contacts are defined")
|
||||
|
||||
if "enable_registration" in cfg:
|
||||
users_can_register = cfg["enable_registration"]
|
||||
|
||||
support = support_obj
|
||||
|
||||
print("[INFO] Configuration file was valid")
|
||||
|
||||
@@ -7,7 +7,7 @@ import copy
|
||||
import json
|
||||
import re
|
||||
|
||||
version = "25w41a"
|
||||
version = "25w41b"
|
||||
|
||||
|
||||
def canonical_json(value):
|
||||
|
||||
Reference in New Issue
Block a user