feat(manager): v2 sign-in (login modes, support access, license notice) and an unlock endpoint for the lock screen
Platform-v2 step 2.6b:
- backend: POST /api/auth/unlock {pin|password} checks the CURRENT session's
user and keeps the session (no new login/token); 5 wrong tries end it
(auth.wrong_pin with attempts_left, then auth.session_ended); bootstrap
gains `login` (manager_mode, autofill_username, support)
- manager LoginPage rewritten on @xenia/ui + i18n: client "manager", password
or PIN pad per setting, remembered/only account card, support access panel
(challenge -> code -> 4 h session, not remembered as an account), notice
when the license runs the free tier (expired/inactive/locked/clock/unverified)
- lock screen on /api/auth/unlock with the shared PinPad
- @xenia/ui PinPad: variable length (minLength/maxLength, OK key, Enter)
- e2e manager.mjs: 33 checks (+ lockout after 5 wrong PINs, PIN login mode,
support access with a wrong then right code)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -31,7 +31,8 @@
|
||||
"moreInfo": "Περισσότερες πληροφορίες",
|
||||
"notifications": "Ειδοποιήσεις",
|
||||
"backspace": "Διαγραφή",
|
||||
"pinProgress": "{{count}} από {{total}} ψηφία"
|
||||
"pinProgress": "{{count}} από {{total}} ψηφία",
|
||||
"submit": "OK"
|
||||
},
|
||||
"override": {
|
||||
"title": "Έγκριση υπευθύνου",
|
||||
|
||||
@@ -35,7 +35,8 @@
|
||||
"session_not_found": "Η σύνδεση δεν βρέθηκε.",
|
||||
"support_not_configured": "Η πρόσβαση υποστήριξης δεν έχει ρυθμιστεί σε αυτό το κατάστημα.",
|
||||
"support_code_invalid": "Ο κωδικός υποστήριξης είναι λάθος ή έχει λήξει. Ζητήστε νέο κωδικό πρόκλησης.",
|
||||
"support_rate_limited": "Πολλές αιτήσεις υποστήριξης. Περιμένετε λίγα λεπτά και δοκιμάστε ξανά."
|
||||
"support_rate_limited": "Πολλές αιτήσεις υποστήριξης. Περιμένετε λίγα λεπτά και δοκιμάστε ξανά.",
|
||||
"wrong_pin": "Λάθος PIN. Απομένουν {{attempts_left}} προσπάθειες πριν αποσυνδεθείτε."
|
||||
},
|
||||
"device": {
|
||||
"revoked": "Αυτή η συσκευή αφαιρέθηκε. Κάντε ξανά σύζευξη.",
|
||||
|
||||
@@ -46,5 +46,36 @@
|
||||
"edit": "Επεξεργασία προφίλ",
|
||||
"signOut": "Αποσύνδεση",
|
||||
"language": "Γλώσσα"
|
||||
},
|
||||
"login": {
|
||||
"title": "Σύνδεση",
|
||||
"subtitle": "Πίνακας διαχείρισης",
|
||||
"username": "Όνομα χρήστη",
|
||||
"password": "Κωδικός",
|
||||
"pin": "PIN",
|
||||
"signIn": "Σύνδεση",
|
||||
"otherAccount": "Άλλος λογαριασμός",
|
||||
"supportLink": "Πρόσβαση υποστήριξης"
|
||||
},
|
||||
"support": {
|
||||
"title": "Πρόσβαση υποστήριξης",
|
||||
"intro": "Διαβάστε αυτόν τον κωδικό στην υποστήριξη της Xenia. Θα σας δώσουν έναν κωδικό πίσω.",
|
||||
"challenge": "Κωδικός για την υποστήριξη",
|
||||
"answer": "Κωδικός της υποστήριξης",
|
||||
"verify": "Άνοιγμα συνεδρίας υποστήριξης",
|
||||
"newChallenge": "Νέος κωδικός",
|
||||
"back": "Πίσω στη σύνδεση",
|
||||
"expires": "Ο κωδικός ισχύει μέχρι τις {{time}}."
|
||||
},
|
||||
"license": {
|
||||
"expired": "Η άδεια έχει λήξει. Το κατάστημα λειτουργεί με τη δωρεάν έκδοση μέχρι την ανανέωση: κάποιες λειτουργίες είναι κλειστές.",
|
||||
"inactive": "Η άδεια δεν είναι ενεργή. Το κατάστημα λειτουργεί με τη δωρεάν έκδοση: κάποιες λειτουργίες είναι κλειστές.",
|
||||
"locked": "Ο πάροχος κλείδωσε την άδεια του καταστήματος. Λειτουργεί με τη δωρεάν έκδοση: κάποιες λειτουργίες είναι κλειστές.",
|
||||
"clock": "Το ρολόι του server γύρισε πίσω, οπότε η άδεια δεν μπορεί να ελεγχθεί. Διορθώστε την ημερομηνία και ώρα του server ή συνδέστε τον στο internet.",
|
||||
"unverified": "Η άδεια δεν έχει ελεγχθεί ακόμα (δεν υπάρχει σύνδεση με τον server αδειών). Προς το παρόν λειτουργεί η δωρεάν έκδοση."
|
||||
},
|
||||
"lock": {
|
||||
"title": "Κλειδωμένο",
|
||||
"signOutInstead": "Αποσύνδεση"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,7 +31,8 @@
|
||||
"moreInfo": "More info",
|
||||
"notifications": "Notifications",
|
||||
"backspace": "Delete",
|
||||
"pinProgress": "{{count}} of {{total}} digits entered"
|
||||
"pinProgress": "{{count}} of {{total}} digits entered",
|
||||
"submit": "OK"
|
||||
},
|
||||
"override": {
|
||||
"title": "Manager approval",
|
||||
|
||||
@@ -35,7 +35,8 @@
|
||||
"session_not_found": "Session not found.",
|
||||
"support_not_configured": "Support access isn't set up on this site.",
|
||||
"support_code_invalid": "That support code is wrong or has expired. Ask for a new challenge.",
|
||||
"support_rate_limited": "Too many support challenges. Wait a few minutes and try again."
|
||||
"support_rate_limited": "Too many support challenges. Wait a few minutes and try again.",
|
||||
"wrong_pin": "Wrong PIN. {{attempts_left}} tries left before you are signed out."
|
||||
},
|
||||
"device": {
|
||||
"revoked": "This device was removed. Pair it again.",
|
||||
|
||||
@@ -46,5 +46,36 @@
|
||||
"edit": "Edit profile",
|
||||
"signOut": "Sign out",
|
||||
"language": "Language"
|
||||
},
|
||||
"login": {
|
||||
"title": "Sign in",
|
||||
"subtitle": "Manager dashboard",
|
||||
"username": "Username",
|
||||
"password": "Password",
|
||||
"pin": "PIN",
|
||||
"signIn": "Sign in",
|
||||
"otherAccount": "Use another account",
|
||||
"supportLink": "Support access"
|
||||
},
|
||||
"support": {
|
||||
"title": "Support access",
|
||||
"intro": "Read this code to Xenia support. They will give you a code back.",
|
||||
"challenge": "Code for support",
|
||||
"answer": "Support's code",
|
||||
"verify": "Open support session",
|
||||
"newChallenge": "New code",
|
||||
"back": "Back to sign in",
|
||||
"expires": "This code is valid until {{time}}."
|
||||
},
|
||||
"license": {
|
||||
"expired": "The license has expired. This venue runs the free version until it's renewed: some features are off.",
|
||||
"inactive": "The license isn't active. This venue runs the free version: some features are off.",
|
||||
"locked": "The license provider locked this venue. It runs the free version: some features are off.",
|
||||
"clock": "The server's clock went back in time, so the license can't be trusted. Fix the server's date and time or connect it to the internet.",
|
||||
"unverified": "The license hasn't been verified yet (no connection to the license server). This venue runs the free version for now."
|
||||
},
|
||||
"lock": {
|
||||
"title": "Locked",
|
||||
"signOutInstead": "Sign out instead"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,6 +34,7 @@ export function useUiLabels() {
|
||||
moreInfo: t('ui.moreInfo'),
|
||||
notifications: t('ui.notifications'),
|
||||
backspace: t('ui.backspace'),
|
||||
submit: t('ui.submit'),
|
||||
pinProgress: (count, total) => t('ui.pinProgress', { count, total }),
|
||||
}), [t, language]) // eslint-disable-line react-hooks/exhaustive-deps
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user