This commit is contained in:
Bryan Gerlach
2025-04-14 11:05:13 -05:00
parent 0e975e73db
commit 2ca25d3a39

View File

@@ -121,7 +121,7 @@ def generator_view(request):
decodedCustom['default-settings']['theme'] = theme decodedCustom['default-settings']['theme'] = theme
elif themeDorO == "override": elif themeDorO == "override":
decodedCustom['override-settings']['theme'] = theme decodedCustom['override-settings']['theme'] = theme
decodedCustom['approve-mode'] = passApproveMode #decodedCustom['approve-mode'] = passApproveMode
decodedCustom['enable-lan-discovery'] = 'N' if denyLan else 'Y' decodedCustom['enable-lan-discovery'] = 'N' if denyLan else 'Y'
#decodedCustom['direct-server'] = 'Y' if enableDirectIP else 'N' #decodedCustom['direct-server'] = 'Y' if enableDirectIP else 'N'
decodedCustom['allow-auto-disconnect'] = 'Y' if autoClose else 'N' decodedCustom['allow-auto-disconnect'] = 'Y' if autoClose else 'N'
@@ -140,6 +140,7 @@ def generator_view(request):
decodedCustom['default-settings']['direct-server'] = 'Y' if enableDirectIP else 'N' decodedCustom['default-settings']['direct-server'] = 'Y' if enableDirectIP else 'N'
decodedCustom['default-settings']['hide-cm'] = 'Y' if hidecm else 'N' decodedCustom['default-settings']['hide-cm'] = 'Y' if hidecm else 'N'
decodedCustom['default-settings']['verification-method'] = 'use-permanent-password' if hidecm else 'use-both-passwords' decodedCustom['default-settings']['verification-method'] = 'use-permanent-password' if hidecm else 'use-both-passwords'
decodedCustom['default-settings']['approve-mode'] = passApproveMode
else: else:
decodedCustom['override-settings']['access-mode'] = permissionsType decodedCustom['override-settings']['access-mode'] = permissionsType
decodedCustom['override-settings']['enable-keyboard'] = 'Y' if enableKeyboard else 'N' decodedCustom['override-settings']['enable-keyboard'] = 'Y' if enableKeyboard else 'N'