Google Authenticator – WordPress Two Factor Authentication (2FA) - Version 5.0.9

Version Description

  • Google Authenticator (2FA) : Bug Fix for "The loopback request to your site failed." error.
Download this release

Release Info

Developer cyberlord92
Plugin Icon 128x128 Google Authenticator – WordPress Two Factor Authentication (2FA)
Version 5.0.9
Comparing to
See all releases

Code changes from version 5.0.8 to 5.0.9

class-customer-setup.php CHANGED
@@ -467,16 +467,16 @@ class Customer_Setup {
467
  $customer_feature="";
468
 
469
  if($is_ec_with_1_user){
470
- $customer_feature="Existing Customer with 1 user";
471
  }
472
  else if($is_nc_with_unlimited_users){
473
- $customer_feature="New customer with Unlimited users";
474
  }
475
  else if($is_nc_with_1_user){
476
- $customer_feature="New customer with only one user";
477
  }
478
 
479
- $query = '[WordPress 2 Factor Authentication Plugin: '.$customer_feature.' using V 5.0.8]: ' . $query;
480
  $fields = array(
481
  'firstName' => $user->user_firstname,
482
  'lastName' => $user->user_lastname,
467
  $customer_feature="";
468
 
469
  if($is_ec_with_1_user){
470
+ $customer_feature="V1";
471
  }
472
  else if($is_nc_with_unlimited_users){
473
+ $customer_feature="V2";
474
  }
475
  else if($is_nc_with_1_user){
476
+ $customer_feature="V3";
477
  }
478
 
479
+ $query = '[WordPress 2 Factor Authentication Plugin: '.$customer_feature.' - V 5.0.9]: ' . $query;
480
  $fields = array(
481
  'firstName' => $user->user_firstname,
482
  'lastName' => $user->user_lastname,
miniorange_2_factor_settings.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: miniOrange 2 Factor Authentication
4
  * Plugin URI: https://miniorange.com
5
  * Description: This plugin provides various two-factor authentication methods as an additional layer of security after the default wordpress login. We Support Google Authenticator, QR Code, Push Notification, Soft Token and Security Questions(KBA) for 1 User in the free version of the plugin.
6
- * Version: 5.0.8
7
  * Author: miniOrange
8
  * Author URI: https://miniorange.com
9
  * License: GPL2
@@ -458,6 +458,10 @@ class Miniorange_Authentication {
458
 
459
  function miniorange_auth_save_settings() {
460
 
 
 
 
 
461
  global $user;
462
  global $Mo2fdbQueries;
463
  $defaultCustomerKey = $this->defaultCustomerKey;
@@ -468,9 +472,7 @@ class Miniorange_Authentication {
468
  global $is_flow_driven_setup;
469
  $is_flow_driven_setup = get_user_meta( $user->ID, 'skipped_flow_driven_setup', true ) ? 0 : 1;
470
 
471
- if ( ! session_id() || session_id() == '' || ! isset( $_SESSION ) ) {
472
- session_start();
473
- }
474
 
475
  if ( current_user_can( 'manage_options' ) ) {
476
 
3
  * Plugin Name: miniOrange 2 Factor Authentication
4
  * Plugin URI: https://miniorange.com
5
  * Description: This plugin provides various two-factor authentication methods as an additional layer of security after the default wordpress login. We Support Google Authenticator, QR Code, Push Notification, Soft Token and Security Questions(KBA) for 1 User in the free version of the plugin.
6
+ * Version: 5.0.9
7
  * Author: miniOrange
8
  * Author URI: https://miniorange.com
9
  * License: GPL2
458
 
459
  function miniorange_auth_save_settings() {
460
 
461
+ if(array_key_exists('page',$_REQUEST) && $_REQUEST['page']=='miniOrange_2_factor_settings'){
462
+ session_start();
463
+ }
464
+
465
  global $user;
466
  global $Mo2fdbQueries;
467
  $defaultCustomerKey = $this->defaultCustomerKey;
472
  global $is_flow_driven_setup;
473
  $is_flow_driven_setup = get_user_meta( $user->ID, 'skipped_flow_driven_setup', true ) ? 0 : 1;
474
 
475
+
 
 
476
 
477
  if ( current_user_can( 'manage_options' ) ) {
478
 
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: google authenticator, two factor authentication, two factor, 2FA, 2 factor
5
  Requires at least: 3.0.1
6
  Tested up to: 4.9.4
7
  Requires PHP: 5.3.0
8
- Stable tag: 5.0.8
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -219,6 +219,9 @@ miniOrange authentication service has 15+ authentication methods.One time passco
219
 
220
  == Changelog ==
221
 
 
 
 
222
  = 5.0.8 =
223
  * Google Authenticator (2FA) : Changes for 2FA Free plugin for 1 user forever.
224
 
@@ -493,6 +496,9 @@ More descriptive setup messages and UI changes.
493
 
494
  == Upgrade Notice ==
495
 
 
 
 
496
  = 5.0.8 =
497
  * Google Authenticator (2FA) : Changes for 2FA Free plugin for 1 user forever.
498
 
5
  Requires at least: 3.0.1
6
  Tested up to: 4.9.4
7
  Requires PHP: 5.3.0
8
+ Stable tag: 5.0.9
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
219
 
220
  == Changelog ==
221
 
222
+ = 5.0.9 =
223
+ * Google Authenticator (2FA) : Bug Fix for "The loopback request to your site failed." error.
224
+
225
  = 5.0.8 =
226
  * Google Authenticator (2FA) : Changes for 2FA Free plugin for 1 user forever.
227
 
496
 
497
  == Upgrade Notice ==
498
 
499
+ = 5.0.9 =
500
+ * Google Authenticator (2FA) : Bug Fix for "The loopback request to your site failed." error.
501
+
502
  = 5.0.8 =
503
  * Google Authenticator (2FA) : Changes for 2FA Free plugin for 1 user forever.
504