From e3686b7b074a762d23107f87059885a8a1ebd25e Mon Sep 17 00:00:00 2001 From: dev-chiefworks Date: Thu, 14 Apr 2022 14:58:16 -0400 Subject: [PATCH] fix --- app/Controllers/Savvy.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/Controllers/Savvy.php b/app/Controllers/Savvy.php index 326a15b..89f817e 100644 --- a/app/Controllers/Savvy.php +++ b/app/Controllers/Savvy.php @@ -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;