Give the machine console its own session with PIN sign-in, make counters cumulative

The console under console/ has its own session cookie and console guard
(UseConsoleSession), so signing out or changing user there leaves the
normal interface alone. Links open it in a new window through a one-time
handoff key; a signed-out console asks for a PIN code or password on its
own login page. Users set their 4-6 digit PIN on the profile's PIN page,
and the console's change user dialog takes it on a keypad; five wrong
PINs lock PIN sign-in for 15 minutes.

Machine counters are cumulative: users record how much a job used and it
is added to the latest reading. A maintenance record restarts the whole
counter interval from the reading at the record.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
2026-11-29 09:58:11 +02:00
co-authored by Claude Sonnet 5.5
parent 87e38260dc
commit 32c33e2a64
55 changed files with 1660 additions and 194 deletions
+41
View File
@@ -86,6 +86,47 @@ return [
'supervisor_has_interns' => 'The user is the supervisor of active interns. First choose a new supervisor for the interns.',
],
'pin' => [
'title' => 'Console PIN code',
'intro' => 'On a machine console you can switch to your user with your own PIN code, without your email and password. A session opened with the PIN code works only on the machine console.',
'is_set' => 'You have a PIN code.',
'not_set' => 'You do not have a PIN code yet.',
'current_password' => 'Current password',
'pin' => 'New PIN code',
'pin_hint' => '4–6 digits.',
'pin_confirmation' => 'PIN code again',
'save' => 'Save PIN code',
'remove' => 'Remove PIN code',
'saved' => 'PIN code saved.',
'removed' => 'PIN code removed.',
'errors' => [
'pin' => 'Enter 4–6 digits as the PIN code.',
'confirmation' => 'The PIN codes do not match.',
'password' => 'The password is not correct.',
],
],
'console_login' => [
'title' => 'Sign in to the machine console',
'intro' => 'The machine console has a sign-in of its own. The normal user interface in the same browser does not change.',
'with_pin' => 'With a PIN code',
'with_password' => 'With email and password',
],
'pin_switch' => [
'title' => 'Change user',
'user' => 'Who are you?',
'pin' => 'PIN code',
'keypad' => 'Number keys',
'clear' => 'Clear',
'backspace' => 'Remove the last digit',
'submit' => 'Sign in',
'no_users' => 'Nobody has a PIN code yet. A PIN code is set from the profile menu.',
'with_password' => 'Sign in with email and password',
'errors' => [
'user' => 'Choose your name.',
'pin' => 'The PIN code is not correct.',
'locked' => 'Too many wrong attempts. Try again in :minutes min or sign in with your password.',
],
],
'password_mail' => [
'subject' => 'Set your password',
'greeting' => 'Hello!',