Changeset 2249173
- Timestamp:
- 02/24/2020 09:27:31 AM (6 years ago)
- Location:
- unloq/trunk
- Files:
-
- 3 edited
-
autoloader/login/class-login.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
-
unloq.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
unloq/trunk/autoloader/login/class-login.php
r1867924 r2249173 577 577 $result = $body['result']; 578 578 } 579 // Start session 580 if ($method === 'UNLOQ' || $method === 'OTP') { 581 return $this->start_session($user, true, $result); 579 $api_status_code = $remote['response']['code']; 580 $api_status_message = $remote['response']['message']; 581 //Only run start_session if API returns absolutely confirmed approval to login. Device offline or timeout returns 502 which passes! 582 if( $api_status_code === 200 && $api_status_message === "OK" && isset( $result['approval_id'] ) ){ 583 // Start session 584 if ($method === 'UNLOQ' || $method === 'OTP') { 585 return $this->start_session($user, true, $result); 586 } 587 return wp_send_json(array( 588 'errors' => false 589 )); 582 590 } 583 591 return wp_send_json(array( 584 'errors' => false592 'errors' => 'An error occurred. Please try again' 585 593 )); 586 594 } -
unloq/trunk/readme.txt
r1965815 r2249173 119 119 120 120 == Changelog == 121 = 2.1.24 = 122 Fixed an issue with authentication session start check 121 123 = 2.1.23 = 122 124 Removed Autocomplete -
unloq/trunk/unloq.php
r1965815 r2249173 3 3 * Plugin Name: UNLOQ Authentication 4 4 * Description: Perform UNLOQ.io authentications with the click of a button 5 * Version: 2.1.2 35 * Version: 2.1.24 6 6 * Author: UNLOQ.io 7 7 * Author URI: https://unloq.io … … 18 18 19 19 define('UQ_PLUGIN', 'unloq'); 20 define('UQ_VERSION', '2.1.2 3');20 define('UQ_VERSION', '2.1.24'); 21 21 define('UQ_VENDORS', plugin_dir_url(__FILE__) . 'vendors'); 22 22 define('UQ_VENDORS_DIR', plugin_dir_path(__FILE__) . 'vendors');
Note: See TracChangeset
for help on using the changeset viewer.