feat: add desktop UI password setting

Adds optional desktop UI password protection
Starts Electron with the saved UI password
Explains login session duration in settings
This commit is contained in:
Bohdan Triapitsyn
2026-05-25 15:20:56 +03:00
parent 1b141b17da
commit 89bce715c5
12 changed files with 78 additions and 4 deletions
@@ -759,6 +759,9 @@ export const settingsDict = {
'settings.openchamber.desktopNetwork.field.allowLanAccess': 'Let other devices on your local network open this app',
'settings.openchamber.desktopNetwork.field.allowLanAccessDescription': 'Restarts the app so phones, tablets, and other computers on your Wi-Fi can open it.',
'settings.openchamber.desktopNetwork.field.warning': 'Warning: while enabled, the app is reachable by anyone on the same local network.',
'settings.openchamber.desktopPassword.field.password': 'Desktop UI Password',
'settings.openchamber.desktopPassword.field.passwordPlaceholder': 'No password required',
'settings.openchamber.desktopPassword.field.passwordDescription': 'OpenChamber asks after restart, then when the login session expires: after 12 hours, or 7 days with Trust this device. Leave empty to disable login.',
'settings.openchamber.desktopNetwork.hint.openAfterRestart': 'After restart, open from another device: ',
'settings.openchamber.desktopNetwork.hint.openNow': 'Open from another device: ',
'settings.openchamber.desktopNetwork.actions.saveAndRestart': 'Save + Restart',