fix
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user