From 852de9ef9dfa92728fc625d78567969cdaf7c6a6 Mon Sep 17 00:00:00 2001 From: HB9HIL Date: Sun, 8 Mar 2026 12:38:01 +0100 Subject: [PATCH] catch missing callsign and email header data as those values are required for a user creation --- application/controllers/Header_auth.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/application/controllers/Header_auth.php b/application/controllers/Header_auth.php index 7052f1063..638f50baa 100644 --- a/application/controllers/Header_auth.php +++ b/application/controllers/Header_auth.php @@ -62,13 +62,15 @@ class Header_auth extends CI_Controller { if (!empty($callsignHeader)) { $callsign = $this->input->server($callsignHeader, true); } else { - $callsign = ''; + $this->session->set_flashdata('error', __('Missing callsign header.')); + redirect('user/login'); } $emailHeader = $this->config->item('auth_headers_email') ?: ''; if (!empty($emailHeader)) { $email = $this->input->server($emailHeader, true); } else { - $email = ''; + $this->session->set_flashdata('error', __('Missing email header.')); + redirect('user/login'); } $club_id = $this->config->item('auth_header_club_id') ?: '';