Merge pull request #448 from int2001/fix_club2

Lock Account also at download
This commit is contained in:
Joerg (DJ7NT)
2024-06-06 14:04:08 +02:00
committed by GitHub

View File

@@ -158,8 +158,9 @@ class Clublog_model extends CI_Model
if (curl_errno($request)) {
$return = curl_error($request);
} elseif (preg_match_all('/Login rejected/', $response)) {
$this->disable_sync4call($station_row->station_callsign, $station_row->station_ids);
$return = "Wrong Clublog username and password for Callsign: '" . $station_row->station_callsign . "'. 'LOGIN REJECTED'.";
log_message('error', $return);
log_message('debug', $return);
} elseif (preg_match_all('/Invalid callsign/', $response)) { // We're trying to download calls for a station we're not granted. Disable Clublog-Transfer for that station(s)
$this->disable_sync4call($station_row->station_callsign, $station_row->station_ids);
$return = "The callsign '" . $station_row->station_callsign . "' does not match the user account at Clublog. 'INVALID CALLSIGN'.";