login failed
This commit is contained in:
@@ -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());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user