Advanced Access Manager - Version 6.5.2

Version Description

  • Fixed Bug: Passwordless authentication disregards "redirect_to" query param https://github.com/aamplugin/advanced-access-manager/issues/117
  • Fixed Bug: Failing to reset user expiration settings https://github.com/aamplugin/advanced-access-manager/issues/119
  • Fixed Bug: IP Check: Inherited rule cannot be deleted https://github.com/aamplugin/advanced-access-manager/issues/116
Download this release

Release Info

Developer vasyltech
Plugin Icon 128x128 Advanced Access Manager
Version 6.5.2
Comparing to
See all releases

Code changes from version 6.5.1 to 6.5.2

aam.php CHANGED
@@ -3,7 +3,7 @@
3
  /**
4
  * Plugin Name: Advanced Access Manager
5
  * Description: Collection of features to manage your WordPress website authentication, authorization and monitoring
6
- * Version: 6.5.1
7
  * Author: Vasyl Martyniuk <vasyl@vasyltech.com>
8
  * Author URI: https://vasyltech.com
9
  * Text Domain: advanced-access-manager
@@ -264,7 +264,7 @@ if (defined('ABSPATH')) {
264
  //define few common constants
265
  define('AAM_MEDIA', plugins_url('/media', __FILE__));
266
  define('AAM_KEY', 'advanced-access-manager');
267
- define('AAM_VERSION', '6.5.1');
268
  define('AAM_BASEDIR', __DIR__);
269
 
270
  //load vendor
3
  /**
4
  * Plugin Name: Advanced Access Manager
5
  * Description: Collection of features to manage your WordPress website authentication, authorization and monitoring
6
+ * Version: 6.5.2
7
  * Author: Vasyl Martyniuk <vasyl@vasyltech.com>
8
  * Author URI: https://vasyltech.com
9
  * Text Domain: advanced-access-manager
264
  //define few common constants
265
  define('AAM_MEDIA', plugins_url('/media', __FILE__));
266
  define('AAM_KEY', 'advanced-access-manager');
267
+ define('AAM_VERSION', '6.5.2');
268
  define('AAM_BASEDIR', __DIR__);
269
 
270
  //load vendor
application/Backend/Feature/Subject/User.php CHANGED
@@ -240,7 +240,7 @@ class AAM_Backend_Feature_Subject_User
240
  private function _resetExpiration()
241
  {
242
  $userId = $this->getFromPost('user');
243
- $result = AAM::api()->getUser($userId)->resetExpiration();
244
 
245
  if ($result) {
246
  $response = array('status' => 'success');
240
  private function _resetExpiration()
241
  {
242
  $userId = $this->getFromPost('user');
243
+ $result = AAM::api()->getUser($userId)->resetUserExpiration();
244
 
245
  if ($result) {
246
  $response = array('status' => 'success');
application/Service/Jwt.php CHANGED
@@ -10,6 +10,7 @@
10
  /**
11
  * JWT Token service
12
  *
 
13
  * @since 6.5.0 Enhanced https://github.com/aamplugin/advanced-access-manager/issues/99
14
  * Fixed https://github.com/aamplugin/advanced-access-manager/issues/98
15
  * @since 6.4.0 Added the ability to issue refreshable token via API.
@@ -20,7 +21,7 @@
20
  * @since 6.0.0 Initial implementation of the class
21
  *
22
  * @package AAM
23
- * @version 6.5.0
24
  */
25
  class AAM_Service_Jwt
26
  {
@@ -623,11 +624,12 @@ class AAM_Service_Jwt
623
  *
624
  * @return void
625
  *
 
626
  * @since 6.5.0 Fixed https://github.com/aamplugin/advanced-access-manager/issues/98
627
  * @since 6.0.0 Initial implementation of the method
628
  *
629
  * @access public
630
- * @version 6.5.0
631
  */
632
  public function authenticateUser()
633
  {
@@ -653,7 +655,16 @@ class AAM_Service_Jwt
653
 
654
  // Determine where to redirect user and safely redirect & finally just
655
  // redirect user to the homepage
656
- wp_safe_redirect(apply_filters('login_redirect', admin_url(), '', $user));
 
 
 
 
 
 
 
 
 
657
 
658
  // Halt the execution. Redirect should carry user away if this is not
659
  // a CLI execution (e.g. Unit Test)
10
  /**
11
  * JWT Token service
12
  *
13
+ * @since 6.5.2 Fixed https://github.com/aamplugin/advanced-access-manager/issues/117
14
  * @since 6.5.0 Enhanced https://github.com/aamplugin/advanced-access-manager/issues/99
15
  * Fixed https://github.com/aamplugin/advanced-access-manager/issues/98
16
  * @since 6.4.0 Added the ability to issue refreshable token via API.
21
  * @since 6.0.0 Initial implementation of the class
22
  *
23
  * @package AAM
24
+ * @version 6.5.2
25
  */
26
  class AAM_Service_Jwt
27
  {
624
  *
625
  * @return void
626
  *
627
+ * @since 6.5.2 Fixed https://github.com/aamplugin/advanced-access-manager/issues/117
628
  * @since 6.5.0 Fixed https://github.com/aamplugin/advanced-access-manager/issues/98
629
  * @since 6.0.0 Initial implementation of the method
630
  *
631
  * @access public
632
+ * @version 6.5.2
633
  */
634
  public function authenticateUser()
635
  {
655
 
656
  // Determine where to redirect user and safely redirect & finally just
657
  // redirect user to the homepage
658
+ $redirect_to = $this->getFromQuery('redirect_to');
659
+
660
+ wp_safe_redirect(
661
+ apply_filters(
662
+ 'login_redirect',
663
+ (!empty($redirect_to) ? $redirect_to : admin_url()),
664
+ '',
665
+ $user
666
+ )
667
+ );
668
 
669
  // Halt the execution. Redirect should carry user away if this is not
670
  // a CLI execution (e.g. Unit Test)
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: access control, membership, backend menu, user role, restricted content, s
4
  Requires at least: 4.7.0
5
  Requires PHP: 5.6.0
6
  Tested up to: 5.4.1
7
- Stable tag: 6.5.1
8
 
9
  All you need to manage access to WordPress websites on the frontend, backend and API levels for any role, user or visitors.
10
 
@@ -91,6 +91,11 @@ We take security and privacy very seriously, that is why there are several non-n
91
 
92
  == Changelog ==
93
 
 
 
 
 
 
94
  = 6.5.1 =
95
  * Fixed Bug: edit_category_form_fields is deprecated since version 3.0.0! [https://github.com/aamplugin/advanced-access-manager/issues/115](https://github.com/aamplugin/advanced-access-manager/issues/115)
96
  * Fixed Bug: Incorrectly loading iframe resizer [https://github.com/aamplugin/advanced-access-manager/issues/113](https://github.com/aamplugin/advanced-access-manager/issues/113)
4
  Requires at least: 4.7.0
5
  Requires PHP: 5.6.0
6
  Tested up to: 5.4.1
7
+ Stable tag: 6.5.2
8
 
9
  All you need to manage access to WordPress websites on the frontend, backend and API levels for any role, user or visitors.
10
 
91
 
92
  == Changelog ==
93
 
94
+ = 6.5.2 =
95
+ * Fixed Bug: Passwordless authentication disregards "redirect_to" query param [https://github.com/aamplugin/advanced-access-manager/issues/117](https://github.com/aamplugin/advanced-access-manager/issues/117)
96
+ * Fixed Bug: Failing to reset user expiration settings [https://github.com/aamplugin/advanced-access-manager/issues/119](https://github.com/aamplugin/advanced-access-manager/issues/119)
97
+ * Fixed Bug: IP Check: Inherited rule cannot be deleted [https://github.com/aamplugin/advanced-access-manager/issues/116](https://github.com/aamplugin/advanced-access-manager/issues/116)
98
+
99
  = 6.5.1 =
100
  * Fixed Bug: edit_category_form_fields is deprecated since version 3.0.0! [https://github.com/aamplugin/advanced-access-manager/issues/115](https://github.com/aamplugin/advanced-access-manager/issues/115)
101
  * Fixed Bug: Incorrectly loading iframe resizer [https://github.com/aamplugin/advanced-access-manager/issues/113](https://github.com/aamplugin/advanced-access-manager/issues/113)