From 522ab44cd5512dedf41364c385db522014534b04 Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Tue, 8 Oct 2024 16:43:33 +0100 Subject: [PATCH] [QRZ] Mismatch of login data when session expired --- application/models/Logbook_model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/models/Logbook_model.php b/application/models/Logbook_model.php index 02dae33f..afbed063 100755 --- a/application/models/Logbook_model.php +++ b/application/models/Logbook_model.php @@ -4599,7 +4599,7 @@ class Logbook_model extends CI_Model // if we got nothing, it's probably because our session key is invalid, try again if (($callbook['callsign'] ?? '') == '') { - $qrz_session_key = $this->qrz->session($this->config->item('qrz_username'), $this->config->item('qrz_password')); + $qrz_session_key = $this->qrz->session($this->session->userdata('callbook_username'), $decrypted_password); $this->session->set_userdata('qrz_session_key', $qrz_session_key); $callbook = $this->qrz->search($callsign, $this->session->userdata('qrz_session_key'), $use_fullname); // if we still got nothing, and it's a compound callsign, then try a search for the base call