Plugin Directory

Changeset 2249173


Ignore:
Timestamp:
02/24/2020 09:27:31 AM (6 years ago)
Author:
unloqer
Message:

Version 2.1.24 fixes

Location:
unloq/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • unloq/trunk/autoloader/login/class-login.php

    r1867924 r2249173  
    577577            $result = $body['result'];
    578578        }
    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            ));
    582590        }
    583591        return wp_send_json(array(
    584             'errors' => false
     592            'errors' => 'An error occurred. Please try again'
    585593        ));
    586594    }
  • unloq/trunk/readme.txt

    r1965815 r2249173  
    119119
    120120== Changelog ==
     121= 2.1.24 =
     122Fixed an issue with authentication session start check
    121123= 2.1.23 =
    122124Removed Autocomplete
  • unloq/trunk/unloq.php

    r1965815 r2249173  
    33 * Plugin Name:       UNLOQ Authentication
    44 * Description:       Perform UNLOQ.io authentications with the click of a button
    5  * Version:           2.1.23
     5 * Version:           2.1.24
    66 * Author:            UNLOQ.io
    77 * Author URI:        https://unloq.io
     
    1818
    1919define('UQ_PLUGIN', 'unloq');
    20 define('UQ_VERSION', '2.1.23');
     20define('UQ_VERSION', '2.1.24');
    2121define('UQ_VENDORS', plugin_dir_url(__FILE__) . 'vendors');
    2222define('UQ_VENDORS_DIR', plugin_dir_path(__FILE__) . 'vendors');
Note: See TracChangeset for help on using the changeset viewer.