Added rejection-case for wrong-credentials

This commit is contained in:
int2001
2024-06-03 14:28:10 +00:00
parent 72f1ab7574
commit be23c02930

View File

@@ -99,7 +99,11 @@ class Clublog_model extends CI_Model
} else {
$return = "Error " . $response;
log_message('error', 'Clublog upload for ' . $station_row->station_callsign . ' failed reason ' . $response);
if (substr($response,0,13) == 'Upload denied') { // Deactivate Upload for Station if Clublog rejects it (prevent being blacklisted at Clublog)
if (substr($response,0,13) == 'Upload denied') { // Deactivate Upload for Station if Clublog rejects it due to non-configured Call (prevent being blacklisted at Clublog)
$sql = 'update station_profile set clublogignore = 1 where station_id = ?';
$this->db->query($sql,$station_row->station_id);
}
if (substr($response,0,14) == 'Login rejected') { // Deactivate Upload for Station if Clublog rejects it due to wrong credentials (prevent being blacklisted at Clublog)
$sql = 'update station_profile set clublogignore = 1 where station_id = ?';
$this->db->query($sql,$station_row->station_id);
}