Add 'Allow Multiple Logins' soft-switch (WIP)#366
Merged
No0ne558 merged 1 commit intoViewTouch:masterfrom Apr 13, 2026
Merged
Conversation
Persist setting, expose UI switch, and respect setting in login flow. Work in progress; bugs possible.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR introduces an experimental soft-switch to permit the same employee to sign into multiple terminals concurrently.
Settings::allow_multi_login(persisted;SETTINGS_VERSIONbumped to 107).Terminal::LoginUser()now respectssettings->allow_multi_loginbefore rejecting a login for an employee already online.LoginZone) checks updated to avoid blocking when the switch is enabled.This is a work-in-progress feature and should be tested on staging. Shared per-employee mutable state (e.g.,
current_job,last_job) remains global — enabling multi-login will not isolate per-terminal session state.settings.datcontains the newallow_multi_loginvalue (after toggle/save).Notes / Risks
SETTINGS_VERSIONbumped to 107 — verify settings load/save across upgrades and backups.IsUserOnlineare possible under heavy concurrent logins; consider additional synchronization if needed.git revert cf62abe(or checkout individual files from previous commit).