update koneksi DB
This commit is contained in:
@@ -20,7 +20,7 @@ class AttendanceWebhook extends CI_Controller {
|
||||
show_error('Serial number perangkat tidak valid.', 400);
|
||||
}
|
||||
|
||||
$allowedSerials = array_filter(array_map('trim', explode(',', (string) getenv('ATTENDANCE_ALLOWED_SERIALS'))));
|
||||
$allowedSerials = array_filter(array_map('trim', explode(',', (string) app_env('ATTENDANCE_ALLOWED_SERIALS', ''))));
|
||||
if (!empty($allowedSerials) && !in_array($sn, $allowedSerials, true)) {
|
||||
log_message('error', 'Attendance webhook ditolak untuk SN: ' . $sn);
|
||||
show_error('Perangkat tidak terdaftar.', 403);
|
||||
|
||||
Reference in New Issue
Block a user