Changeset 2534676
- Timestamp:
- 05/20/2021 08:34:26 AM (5 years ago)
- Location:
- 2fas-light/trunk
- Files:
-
- 7 edited
-
changelog.txt (modified) (1 diff)
-
constants.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
-
src/Hooks/Delete_Expired_Trusted_Devices_Action.php (modified) (2 diffs)
-
twofas_light.php (modified) (1 diff)
-
vendor/composer/InstalledVersions.php (modified) (2 diffs)
-
vendor/composer/installed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
2fas-light/trunk/changelog.txt
r2521323 r2534676 1 1 == Changelog == 2 3 = 3.2.1 (May, 20, 2021) = 4 * Fixed bug in Trusted Devices Hook 2 5 3 6 = 3.2 (Apr. 26, 2021) = -
2fas-light/trunk/constants.php
r2521323 r2534676 15 15 define( 'TWOFAS_LIGHT_TEMPLATES_PATH', $templates_path ); 16 16 define( 'TWOFAS_LIGHT_WP_ADMIN_PATH', $admin_url ); 17 define( 'TWOFAS_LIGHT_PLUGIN_VERSION', '3.2. 0' );17 define( 'TWOFAS_LIGHT_PLUGIN_VERSION', '3.2.1' ); 18 18 define( 'TWOFAS_LIGHT_WP_MINIMUM_VERSION', '5.0' ); 19 19 if ( ! defined( 'TWOFAS_LIGHT_CHECK_CONFLICTED_PLUGINS' ) ) { -
2fas-light/trunk/readme.txt
r2521323 r2534676 100 100 == Changelog == 101 101 102 = 3.2.1 (May, 20, 2021) = 103 * Fixed bug in Trusted Devices Hook 104 102 105 = 3.2 (Apr. 26, 2021) = 103 106 * 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 4 4 namespace TwoFAS\Light\Hooks; 5 5 6 use TwoFAS\Light\Exceptions\User_Not_Found_Exception; 6 7 use TwoFAS\Light\Helpers\Time; 7 8 use TwoFAS\Light\Storage\Storage; … … 38 39 39 40 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 } 46 49 } 47 } 50 } catch (User_Not_Found_Exception $e) {} 48 51 } 49 52 -
2fas-light/trunk/twofas_light.php
r2521323 r2534676 4 4 * Plugin URI: https://wordpress.org/plugins/2fas-light/ 5 5 * Description: Free, simple and secure token-based authentication for your WordPress. No registration required. 6 * Version: 3.2. 06 * Version: 3.2.1 7 7 * Requires PHP: 7.0 8 8 * Requires at least: 5.0 -
2fas-light/trunk/vendor/composer/InstalledVersions.php
r2521323 r2534676 20 20 array ( 21 21 ), 22 'reference' => ' 5333706ff86d118e320d4cbd7d9039ef14fb2e7d',22 'reference' => '67ee02b4f74c7a3bc0bfc670d49f92f0c0d00762', 23 23 'name' => 'twofas/wp-plugin-secure', 24 24 ), … … 201 201 array ( 202 202 ), 203 'reference' => ' 5333706ff86d118e320d4cbd7d9039ef14fb2e7d',203 'reference' => '67ee02b4f74c7a3bc0bfc670d49f92f0c0d00762', 204 204 ), 205 205 'whichbrowser/parser' => -
2fas-light/trunk/vendor/composer/installed.php
r2521323 r2534676 7 7 array ( 8 8 ), 9 'reference' => ' 5333706ff86d118e320d4cbd7d9039ef14fb2e7d',9 'reference' => '67ee02b4f74c7a3bc0bfc670d49f92f0c0d00762', 10 10 'name' => 'twofas/wp-plugin-secure', 11 11 ), … … 188 188 array ( 189 189 ), 190 'reference' => ' 5333706ff86d118e320d4cbd7d9039ef14fb2e7d',190 'reference' => '67ee02b4f74c7a3bc0bfc670d49f92f0c0d00762', 191 191 ), 192 192 'whichbrowser/parser' =>
Note: See TracChangeset
for help on using the changeset viewer.