Changeset 1875207
- Timestamp:
- 05/16/2018 07:44:48 AM (8 years ago)
- Location:
- reve-secure
- Files:
-
- 2 edited
-
tags/1.0.0/inc/RevesecureSettingsMenu.php (modified) (3 diffs)
-
trunk/inc/RevesecureSettingsMenu.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
reve-secure/tags/1.0.0/inc/RevesecureSettingsMenu.php
r1875164 r1875207 97 97 98 98 $resp = ReveSecureUtility::send_user_info($api_key, $secret_key, $username, $username ); 99 $out = [];99 $out = array(); 100 100 if($resp == false){ 101 101 $out['status'] = "failure"; … … 106 106 $out['isBypass'] = ($resp['data']['R2faStatus'] == "Bypass") ? true : false; 107 107 if($resp['data']['R2faStatus'] != "Denied") { 108 $tokens['Software'] = [];109 $tokens['Hardware'] = [];108 $tokens['Software'] = array(); 109 $tokens['Hardware'] = array(); 110 110 foreach ($resp['data']['Tokens'] as $token) { 111 111 if (intval($token['TokenBlocked']) == 0) { … … 363 363 $secret_key = get_option('Rsecure_Secret_Key'); 364 364 $method = sanitize_text_field($_POST['method']); 365 $out = [];365 $out = array(); 366 366 if($method == "P"){ 367 367 $token_id = sanitize_text_field($_POST['tokenId']); -
reve-secure/trunk/inc/RevesecureSettingsMenu.php
r1875161 r1875207 97 97 98 98 $resp = ReveSecureUtility::send_user_info($api_key, $secret_key, $username, $username ); 99 $out = [];99 $out = array(); 100 100 if($resp == false){ 101 101 $out['status'] = "failure"; … … 106 106 $out['isBypass'] = ($resp['data']['R2faStatus'] == "Bypass") ? true : false; 107 107 if($resp['data']['R2faStatus'] != "Denied") { 108 $tokens['Software'] = [];109 $tokens['Hardware'] = [];108 $tokens['Software'] = array(); 109 $tokens['Hardware'] = array(); 110 110 foreach ($resp['data']['Tokens'] as $token) { 111 111 if (intval($token['TokenBlocked']) == 0) { … … 363 363 $secret_key = get_option('Rsecure_Secret_Key'); 364 364 $method = sanitize_text_field($_POST['method']); 365 $out = [];365 $out = array(); 366 366 if($method == "P"){ 367 367 $token_id = sanitize_text_field($_POST['tokenId']);
Note: See TracChangeset
for help on using the changeset viewer.