feat(backend): sign people out after N days without use (auth.idle_days, default 14)

Platform-v2 step 2.99d, owner decision 2026-11-14.
- New core setting auth.idle_days (int, default 14, 0 = never). A manager, waiter or
  paired-device session unused for that long ends with reason "idle" on its next
  request (sessions.validate) or when someone opens "Signed in now"
  (sessions.end_idle in GET /api/auth/sessions). Support keeps its own 4 h expiry.
- Manager: Settings -> Sign-in & security -> "Sign people out after" (7/14/30/60/90
  days / Never; a value set elsewhere is kept); "Signed in now" names the reason.
  Texts en/el.
- Tests: backend 284 (+ 14-day default, list drops idle ones, setting incl. 0);
  manager e2e checks the default and saving 30. The support-access check that
  failed once in ~8 runs now saves a screenshot and the page's alert text.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-14 13:38:00 +02:00
co-authored by Claude Opus 5.5
parent cc4e76019b
commit f1f20f7bba
8 changed files with 119 additions and 6 deletions
+8 -2
View File
@@ -262,7 +262,8 @@
"device_revoked": "device removed",
"device_reassigned": "device changed app",
"expired": "time ran out",
"unlock_failed": "wrong PIN on the lock screen"
"unlock_failed": "wrong PIN on the lock screen",
"idle": "not used for too long"
}
},
"approvals": {
@@ -332,7 +333,12 @@
"deviceHint": "Each device can choose its own on the Devices page.",
"singleManager": "One session per manager",
"singleWaiter": "One session per waiter",
"singleTip": "When someone is already signed in on another device: allow both, refuse the new sign-in, or sign out the older one."
"singleTip": "When someone is already signed in on another device: allow both, refuse the new sign-in, or sign out the older one.",
"idle": "Sign people out after",
"idleHint": "Days without using the app (manager, waiter app and paired devices). They sign in again next time.",
"idleDays_one": "{{count}} day without use",
"idleDays_other": "{{count}} days without use",
"idleNever": "Never"
},
"venue": {
"title": "Venue",