login failed

This commit is contained in:
CHIEFSOFT\ameye
2025-09-24 08:46:07 -04:00
parent 78163b1163
commit 58123c85ed
+5 -2
View File
@@ -142,8 +142,9 @@ abstract class BaseController extends Controller
curl_close($ch); curl_close($ch);
if ($httpcode != "204") { if ($httpcode != "204") {
return "Login failed! $result"; log_message('critical', "***** ***** Provision LOGIN FAILED*********** :: " . $result);
} //return '';
} else {
log_message('critical', "***** ***** Provision LOGIN COMPLETED :: NOW TOKEN :: "); log_message('critical', "***** ***** Provision LOGIN COMPLETED :: NOW TOKEN :: ");
# 2. Get token # 2. Get token
$url = $base_url . "/api/user/tokens"; $url = $base_url . "/api/user/tokens";
@@ -167,6 +168,8 @@ abstract class BaseController extends Controller
$result = "Found token: $token"; $result = "Found token: $token";
# Print response. # Print response.
log_message('critical', "***** ***** Provision LOGIN TOKEN :: " . $token); log_message('critical', "***** ***** Provision LOGIN TOKEN :: " . $token);
}
} catch (\Exception $e) { } catch (\Exception $e) {
log_message('critical', "***** ***** Provision LOGIN FAILED :: " . $e->getMessage()); log_message('critical', "***** ***** Provision LOGIN FAILED :: " . $e->getMessage());
} }