Allowance check
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
<?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', ''),
|
||||
|
||||
];
|
||||
Reference in New Issue
Block a user