Files
E-Vote/config/physical_attendance_gate.php
ISMAIL MASSERAN 3775c4a876 Allowance check
2026-04-14 02:34:00 +00:00

31 lines
1.0 KiB
PHP

<?php
return [
/*
|--------------------------------------------------------------------------
| Physical attendance gate (rotating counter code)
|--------------------------------------------------------------------------
|
| When enabled, voters choosing Fizikal must submit a code that matches
| the value shown on the registration counter display. The code is derived
| from PHYSICAL_ATTENDANCE_GATE_SECRET, current election id, and a time slot
| (period_seconds), so all devices stay in sync without a database row.
|
*/
'enabled' => env('PHYSICAL_ATTENDANCE_GATE_ENABLED', false),
'secret' => env('PHYSICAL_ATTENDANCE_GATE_SECRET', ''),
'period_seconds' => (int) env('PHYSICAL_ATTENDANCE_GATE_PERIOD', 60),
/*
| Counter / TV browser sends this value (header X-Physical-Gate-Display-Key
| or Authorization: Bearer ...) to read the current code. Keep it long
| and random; do not expose it to voters.
*/
'display_key' => env('PHYSICAL_ATTENDANCE_GATE_DISPLAY_KEY', ''),
];