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

Version Description

  • Google Authenticator-Two Factor Authentication (2FA) : Warning for cloud customer moving to on-premise Two factor.
Download this release

Release Info

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

Code changes from version 5.4.0 to 5.4.2

api/Mo2f_OnPremRedirect.php CHANGED
@@ -1,7 +1,4 @@
1
-
2
  <?php
3
-
4
-
5
  class Mo2f_OnPremRedirect {
6
 
7
  function OnpremValidateRedirect($authType, $otpToken){
 
1
  <?php
 
 
2
  class Mo2f_OnPremRedirect {
3
 
4
  function OnpremValidateRedirect($authType, $otpToken){
controllers/content-protection.php CHANGED
@@ -1,5 +1,4 @@
1
  <?php
2
-
3
  global $moWpnsUtility,$mo2f_dirName;
4
 
5
  if(current_user_can( 'manage_options' ) && isset($_POST['option']))
1
  <?php
 
2
  global $moWpnsUtility,$mo2f_dirName;
3
 
4
  if(current_user_can( 'manage_options' ) && isset($_POST['option']))
handler/login.php CHANGED
@@ -1,6 +1,5 @@
1
- <?php
2
-
3
- class LoginHandler
4
  {
5
  function __construct()
6
  {
1
+ <?php
2
+ class LoginHandler
 
3
  {
4
  function __construct()
5
  {
handler/twofa/setup_twofa.php CHANGED
@@ -1,5 +1,4 @@
1
  <?php
2
-
3
  $setup_dirName = dirname(dirname(dirname(__FILE__))).DIRECTORY_SEPARATOR.'views'.DIRECTORY_SEPARATOR.'twofa'.DIRECTORY_SEPARATOR.'setup'.DIRECTORY_SEPARATOR;
4
  $test_dirName = dirname(dirname(dirname(__FILE__))).DIRECTORY_SEPARATOR.'views'.DIRECTORY_SEPARATOR.'twofa'.DIRECTORY_SEPARATOR.'test'.DIRECTORY_SEPARATOR;
5
  include $setup_dirName.'setup_google_authenticator.php';
1
  <?php
 
2
  $setup_dirName = dirname(dirname(dirname(__FILE__))).DIRECTORY_SEPARATOR.'views'.DIRECTORY_SEPARATOR.'twofa'.DIRECTORY_SEPARATOR.'setup'.DIRECTORY_SEPARATOR;
3
  $test_dirName = dirname(dirname(dirname(__FILE__))).DIRECTORY_SEPARATOR.'views'.DIRECTORY_SEPARATOR.'twofa'.DIRECTORY_SEPARATOR.'test'.DIRECTORY_SEPARATOR;
4
  include $setup_dirName.'setup_google_authenticator.php';
handler/twofa/two_fa_pass2login.php CHANGED
@@ -74,8 +74,8 @@ class Miniorange_Password_2Factor_Login {
74
  $email = $Mo2fdbQueries->get_user_detail( 'mo2f_user_email', $user->ID );
75
  $mo_2factor_user_registration_status = $Mo2fdbQueries->get_user_detail( 'mo_2factor_user_registration_status', $user->ID );
76
  $kba_configuration_status = $Mo2fdbQueries->get_user_detail( 'mo2f_SecurityQuestions_config_status', $user->ID );
77
-
78
- if(MO2F_IS_ONPREM and !empty(get_user_meta($user->ID,'currentMethod',true)))
79
  {
80
  $configuredMethod = get_user_meta($user->ID,'currentMethod',true);
81
  $mo2f_configured_2FA_method = empty($configuredMethod) ? 0 : 1;
74
  $email = $Mo2fdbQueries->get_user_detail( 'mo2f_user_email', $user->ID );
75
  $mo_2factor_user_registration_status = $Mo2fdbQueries->get_user_detail( 'mo_2factor_user_registration_status', $user->ID );
76
  $kba_configuration_status = $Mo2fdbQueries->get_user_detail( 'mo2f_SecurityQuestions_config_status', $user->ID );
77
+
78
+ if(MO2F_IS_ONPREM )
79
  {
80
  $configuredMethod = get_user_meta($user->ID,'currentMethod',true);
81
  $mo2f_configured_2FA_method = empty($configuredMethod) ? 0 : 1;
handler/twofa/two_fa_settings.php CHANGED
@@ -1,5 +1,4 @@
1
  <?php
2
-
3
  include 'two_fa_pass2login.php';
4
  include dirname(dirname(dirname(__FILE__))).DIRECTORY_SEPARATOR.'views'.DIRECTORY_SEPARATOR.'twofa'.DIRECTORY_SEPARATOR.'two_fa_setup_notification.php';
5
  include 'class_miniorange_2fa_strong_password.php';
1
  <?php
 
2
  include 'two_fa_pass2login.php';
3
  include dirname(dirname(dirname(__FILE__))).DIRECTORY_SEPARATOR.'views'.DIRECTORY_SEPARATOR.'twofa'.DIRECTORY_SEPARATOR.'two_fa_setup_notification.php';
4
  include 'class_miniorange_2fa_strong_password.php';
miniorange_2_factor_settings.php CHANGED
@@ -3,13 +3,13 @@
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/Authy/LastPass Authenticator, QR Code, Push Notification, Soft Token and Security Questions(KBA) for 1 User in the free version of the plugin.
6
- * Version: 5.4.0
7
  * Author: miniOrange
8
  * Author URI: https://miniorange.com
9
  * License: GPL2
10
  */
11
  define( 'MO_HOST_NAME', 'https://login.xecurify.com' );
12
- define( 'MO2F_VERSION', '5.4.0' );
13
  define( 'MO2F_TEST_MODE', FALSE );
14
  define( 'MO2F_IS_ONPREM', get_option('is_onprem'));
15
  class Miniorange_twoFactor{
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/Authy/LastPass Authenticator, QR Code, Push Notification, Soft Token and Security Questions(KBA) for 1 User in the free version of the plugin.
6
+ * Version: 5.4.2
7
  * Author: miniOrange
8
  * Author URI: https://miniorange.com
9
  * License: GPL2
10
  */
11
  define( 'MO_HOST_NAME', 'https://login.xecurify.com' );
12
+ define( 'MO2F_VERSION', '5.4.2' );
13
  define( 'MO2F_TEST_MODE', FALSE );
14
  define( 'MO2F_IS_ONPREM', get_option('is_onprem'));
15
  class Miniorange_twoFactor{
readme.txt CHANGED
@@ -6,7 +6,7 @@ Donate link: https://miniorange.com/
6
  Requires at least: 3.0.1
7
  Tested up to: 5.4
8
  Requires PHP: 5.3.0
9
- Stable tag: 5.4.0
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
@@ -272,6 +272,12 @@ miniOrange authentication service has 15+ authentication methods.One time passco
272
 
273
  == Changelog ==
274
 
 
 
 
 
 
 
275
  = 5.4.0 =
276
  * Google Authenticator-Two Factor Authentication (2FA) : Two Factor FAQ Fix and OTP code convinence.
277
 
@@ -747,6 +753,9 @@ More descriptive setup messages and UI changes.
747
 
748
  == Upgrade Notice ==
749
 
 
 
 
750
  = 5.4.0 =
751
  * Google Authenticator-Two Factor Authentication (2FA) : Two Factor FAQ Fix and OTP code convinence.
752
 
6
  Requires at least: 3.0.1
7
  Tested up to: 5.4
8
  Requires PHP: 5.3.0
9
+ Stable tag: 5.4.2
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
272
 
273
  == Changelog ==
274
 
275
+ = 5.4.2 =
276
+ * Google Authenticator-Two Factor Authentication (2FA) : Warning for cloud customer moving to on-premise Two factor.
277
+
278
+ = 5.4.1 =
279
+ * Google Authenticator-Two Factor Authentication (2FA) : Headers sent issue is security firewall.
280
+
281
  = 5.4.0 =
282
  * Google Authenticator-Two Factor Authentication (2FA) : Two Factor FAQ Fix and OTP code convinence.
283
 
753
 
754
  == Upgrade Notice ==
755
 
756
+ = 5.4.2 =
757
+ * Google Authenticator-Two Factor Authentication (2FA) : Warning for cloud customer moving to on-premise Two factor
758
+
759
  = 5.4.0 =
760
  * Google Authenticator-Two Factor Authentication (2FA) : Two Factor FAQ Fix and OTP code convinence.
761
 
views/twofa/setup_twofa.php CHANGED
@@ -141,6 +141,7 @@
141
 
142
  $premium_plan_methods_existing_user = array_chunk( array_merge( $standard_plan_existing_user, $premium_plan) , 3 );
143
  $premium_plan_methods_new_user = array_chunk( array_merge( $standard_plan_new_user, $premium_plan ), 3 );
 
144
  if(MO2F_IS_ONPREM)
145
  {
146
  $selectedMethod = get_user_meta($user->ID,'currentMethod',true);
@@ -152,7 +153,7 @@
152
  $selectedMethod = 'NONE';
153
  $testMethod = 'Not Configured';
154
  }
155
- $showOTP=FALSE;
156
  if($selectedMethod=="Google Authenticator"){
157
  include_once $mo2f_dirName . DIRECTORY_SEPARATOR. 'handler'.DIRECTORY_SEPARATOR. 'twofa' . DIRECTORY_SEPARATOR . 'gaonprem.php';
158
  $gauth_obj= new Google_auth_onpremise();
141
 
142
  $premium_plan_methods_existing_user = array_chunk( array_merge( $standard_plan_existing_user, $premium_plan) , 3 );
143
  $premium_plan_methods_new_user = array_chunk( array_merge( $standard_plan_new_user, $premium_plan ), 3 );
144
+ $showOTP=FALSE;
145
  if(MO2F_IS_ONPREM)
146
  {
147
  $selectedMethod = get_user_meta($user->ID,'currentMethod',true);
153
  $selectedMethod = 'NONE';
154
  $testMethod = 'Not Configured';
155
  }
156
+
157
  if($selectedMethod=="Google Authenticator"){
158
  include_once $mo2f_dirName . DIRECTORY_SEPARATOR. 'handler'.DIRECTORY_SEPARATOR. 'twofa' . DIRECTORY_SEPARATOR . 'gaonprem.php';
159
  $gauth_obj= new Google_auth_onpremise();
views/twofa/test/test_twofa_kba_questions.php CHANGED
@@ -1,9 +1,6 @@
1
  <?php function mo2f_test_kba_security_questions( $user ) {
2
  $onprem = MO2F_IS_ONPREM;
3
- ?>
4
-
5
- <?php
6
- if($onprem){
7
  ?>
8
  <h3><?php echo mo2f_lt( 'Test Security Questions( KBA )' ); ?></h3>
9
  <hr>
1
  <?php function mo2f_test_kba_security_questions( $user ) {
2
  $onprem = MO2F_IS_ONPREM;
3
+ if($onprem){
 
 
 
4
  ?>
5
  <h3><?php echo mo2f_lt( 'Test Security Questions( KBA )' ); ?></h3>
6
  <hr>