Plugin Directory

Changeset 2534676


Ignore:
Timestamp:
05/20/2021 08:34:26 AM (5 years ago)
Author:
2fas
Message:

Release v3.2.1

Location:
2fas-light/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • 2fas-light/trunk/changelog.txt

    r2521323 r2534676  
    11== Changelog ==
     2
     3= 3.2.1 (May, 20, 2021) =
     4* Fixed bug in Trusted Devices Hook
    25
    36= 3.2 (Apr. 26, 2021) =
  • 2fas-light/trunk/constants.php

    r2521323 r2534676  
    1515define( 'TWOFAS_LIGHT_TEMPLATES_PATH', $templates_path );
    1616define( 'TWOFAS_LIGHT_WP_ADMIN_PATH', $admin_url );
    17 define( 'TWOFAS_LIGHT_PLUGIN_VERSION', '3.2.0' );
     17define( 'TWOFAS_LIGHT_PLUGIN_VERSION', '3.2.1' );
    1818define( 'TWOFAS_LIGHT_WP_MINIMUM_VERSION', '5.0' );
    1919if ( ! defined( 'TWOFAS_LIGHT_CHECK_CONFLICTED_PLUGINS' ) ) {
  • 2fas-light/trunk/readme.txt

    r2521323 r2534676  
    100100== Changelog ==
    101101
     102= 3.2.1 (May, 20, 2021) =
     103* Fixed bug in Trusted Devices Hook
     104
    102105= 3.2 (Apr. 26, 2021) =
    103106* Added admin settings page (can set 2FA obligatory for user roles and turn off trusted devices feature)
  • 2fas-light/trunk/src/Hooks/Delete_Expired_Trusted_Devices_Action.php

    r2505828 r2534676  
    44namespace TwoFAS\Light\Hooks;
    55
     6use TwoFAS\Light\Exceptions\User_Not_Found_Exception;
    67use TwoFAS\Light\Helpers\Time;
    78use TwoFAS\Light\Storage\Storage;
     
    3839   
    3940    public function delete_trusted_devices() {
    40         $user_id         = $this->user_storage->get_user_id();
    41         $trusted_devices = $this->trusted_devices_storage->get_trusted_devices( $user_id );
    42        
    43         foreach ( $trusted_devices as $trusted_device ) {
    44             if ( $this->is_expired( (int) $trusted_device['created_at'] ) ) {
    45                 $this->trusted_devices_storage->remove_trusted_device( $user_id, $trusted_device['device_id'] );
     41        try {
     42            $user_id         = $this->user_storage->get_user_id();
     43            $trusted_devices = $this->trusted_devices_storage->get_trusted_devices( $user_id );
     44           
     45            foreach ( $trusted_devices as $trusted_device ) {
     46                if ( $this->is_expired( (int) $trusted_device['created_at'] ) ) {
     47                    $this->trusted_devices_storage->remove_trusted_device( $user_id, $trusted_device['device_id'] );
     48                }
    4649            }
    47         }
     50        } catch (User_Not_Found_Exception $e) {}
    4851    }
    4952   
  • 2fas-light/trunk/twofas_light.php

    r2521323 r2534676  
    44 * Plugin URI:        https://wordpress.org/plugins/2fas-light/
    55 * Description:       Free, simple and secure token-based authentication for your WordPress. No registration required.
    6  * Version:           3.2.0
     6 * Version:           3.2.1
    77 * Requires PHP:      7.0
    88 * Requires at least: 5.0
  • 2fas-light/trunk/vendor/composer/InstalledVersions.php

    r2521323 r2534676  
    2020    array (
    2121    ),
    22     'reference' => '5333706ff86d118e320d4cbd7d9039ef14fb2e7d',
     22    'reference' => '67ee02b4f74c7a3bc0bfc670d49f92f0c0d00762',
    2323    'name' => 'twofas/wp-plugin-secure',
    2424  ),
     
    201201      array (
    202202      ),
    203       'reference' => '5333706ff86d118e320d4cbd7d9039ef14fb2e7d',
     203      'reference' => '67ee02b4f74c7a3bc0bfc670d49f92f0c0d00762',
    204204    ),
    205205    'whichbrowser/parser' =>
  • 2fas-light/trunk/vendor/composer/installed.php

    r2521323 r2534676  
    77    array (
    88    ),
    9     'reference' => '5333706ff86d118e320d4cbd7d9039ef14fb2e7d',
     9    'reference' => '67ee02b4f74c7a3bc0bfc670d49f92f0c0d00762',
    1010    'name' => 'twofas/wp-plugin-secure',
    1111  ),
     
    188188      array (
    189189      ),
    190       'reference' => '5333706ff86d118e320d4cbd7d9039ef14fb2e7d',
     190      'reference' => '67ee02b4f74c7a3bc0bfc670d49f92f0c0d00762',
    191191    ),
    192192    'whichbrowser/parser' =>
Note: See TracChangeset for help on using the changeset viewer.