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:
@@ -262,7 +262,8 @@
|
||||
"device_revoked": "η συσκευή αφαιρέθηκε",
|
||||
"device_reassigned": "η συσκευή άλλαξε εφαρμογή",
|
||||
"expired": "έληξε ο χρόνος",
|
||||
"unlock_failed": "λάθος PIN στην οθόνη κλειδώματος"
|
||||
"unlock_failed": "λάθος PIN στην οθόνη κλειδώματος",
|
||||
"idle": "αχρησιμοποίητη για πολύ καιρό"
|
||||
}
|
||||
},
|
||||
"approvals": {
|
||||
@@ -332,7 +333,12 @@
|
||||
"deviceHint": "Κάθε συσκευή μπορεί να έχει δική της επιλογή στη σελίδα Συσκευές.",
|
||||
"singleManager": "Μία σύνδεση ανά υπεύθυνο",
|
||||
"singleWaiter": "Μία σύνδεση ανά σερβιτόρο",
|
||||
"singleTip": "Όταν κάποιος είναι ήδη συνδεδεμένος σε άλλη συσκευή: επιτρέπονται και οι δύο, απορρίπτεται η νέα σύνδεση ή αποσυνδέεται η παλιότερη."
|
||||
"singleTip": "Όταν κάποιος είναι ήδη συνδεδεμένος σε άλλη συσκευή: επιτρέπονται και οι δύο, απορρίπτεται η νέα σύνδεση ή αποσυνδέεται η παλιότερη.",
|
||||
"idle": "Αποσύνδεση μετά από",
|
||||
"idleHint": "Ημέρες χωρίς χρήση της εφαρμογής (διαχείριση, εφαρμογή σερβιτόρων και συζευγμένες συσκευές). Την επόμενη φορά συνδέονται ξανά.",
|
||||
"idleDays_one": "{{count}} ημέρα χωρίς χρήση",
|
||||
"idleDays_other": "{{count}} ημέρες χωρίς χρήση",
|
||||
"idleNever": "Ποτέ"
|
||||
},
|
||||
"venue": {
|
||||
"title": "Κατάστημα",
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user