This commit is contained in:
dev-chiefworks
2022-04-14 14:58:16 -04:00
parent 5109c78463
commit e3686b7b07
+10
View File
@@ -207,6 +207,7 @@ class Savvy extends BaseController
}
else{
log_message('critical', "Login Failed for User=>".$inx['username'] );
$res["internal_return"] = "0";
}
}
@@ -246,6 +247,15 @@ class Savvy extends BaseController
break;
case 'loadprofile': $in["action"] = SAVVYEXT_USER_PROFILE;
if (!empty($inx) && is_array($inx)){
if (isset($inx['sessionid'])){
$inx['accessToken'] = $inx['sessionid'];
$resProfile = UserProfile::floatUserProfile($inx['accessToken']);
$this->logArray($resProfile);
$res = json_decode($resProfile, true);
$this->logArray($res);
}
break;
case 'deletecard': $in["action"] = SAVVYEXT_USER_DELETECARD;
break;