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

Version Description

  • Google Authenticator (2FA) : Bug fixes.
Download this release

Release Info

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

Code changes from version 5.0.15 to 5.0.16

class-miniorange-2-factor-pass2fa-login.php CHANGED
@@ -972,8 +972,9 @@ class Miniorange_Password_2Factor_Login {
972
  exit;
973
  } else {
974
  $mo2f_second_factor = mo2f_get_user_2ndfactor( $currentuser );
 
975
 
976
- if(get_option('mo2f_enable_2fa_prompt_on_login_page')&& !get_option('mo2f_remember_device')){
977
  $error=$this->mo2f_validate_soft_token($currentuser, $redirect_to, $mo2f_second_factor, $otp_token);
978
 
979
  if(is_wp_error( $error)){
@@ -1080,7 +1081,7 @@ class Miniorange_Password_2Factor_Login {
1080
  global $Mo2fdbQueries;
1081
  $mo2f_configured_2FA_method = $Mo2fdbQueries->get_user_detail( 'mo2f_configured_2FA_method', $currentuser->ID );
1082
  $is_nc_with_unlimited_users = get_option( 'mo2f_is_NC' ) && !get_option( 'mo2f_is_NNC' );
1083
-
1084
  if ( !$is_nc_with_unlimited_users && empty( $_POST['mo_softtoken'] ) && get_option('mo2f_enable_2fa_prompt_on_login_page') && $mo2f_configured_2FA_method && !get_option('mo2f_remember_device')) { // Prevent PHP notices when using app password login
1085
  return new WP_Error( 'one_time_passcode_empty', '<strong>ERROR</strong>: Please enter the One Time Passcode.');
1086
  } else {
972
  exit;
973
  } else {
974
  $mo2f_second_factor = mo2f_get_user_2ndfactor( $currentuser );
975
+ $is_nc_with_unlimited_users = get_option( 'mo2f_is_NC' ) && !get_option( 'mo2f_is_NNC' );
976
 
977
+ if(!$is_nc_with_unlimited_users && get_option('mo2f_enable_2fa_prompt_on_login_page')&& !get_option('mo2f_remember_device')){
978
  $error=$this->mo2f_validate_soft_token($currentuser, $redirect_to, $mo2f_second_factor, $otp_token);
979
 
980
  if(is_wp_error( $error)){
1081
  global $Mo2fdbQueries;
1082
  $mo2f_configured_2FA_method = $Mo2fdbQueries->get_user_detail( 'mo2f_configured_2FA_method', $currentuser->ID );
1083
  $is_nc_with_unlimited_users = get_option( 'mo2f_is_NC' ) && !get_option( 'mo2f_is_NNC' );
1084
+
1085
  if ( !$is_nc_with_unlimited_users && empty( $_POST['mo_softtoken'] ) && get_option('mo2f_enable_2fa_prompt_on_login_page') && $mo2f_configured_2FA_method && !get_option('mo2f_remember_device')) { // Prevent PHP notices when using app password login
1086
  return new WP_Error( 'one_time_passcode_empty', '<strong>ERROR</strong>: Please enter the One Time Passcode.');
1087
  } else {
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.15
7
  * Author: miniOrange
8
  * Author URI: https://miniorange.com
9
  * License: GPL2
@@ -2065,7 +2065,7 @@ class Miniorange_Authentication {
2065
  $user_phone = $_SESSION['user_phone'] != 'false' ? $_SESSION['user_phone'] : $Mo2fdbQueries->get_user_detail( 'mo2f_user_phone', $user->ID );
2066
  }
2067
 
2068
-
2069
  if (!$is_nc_with_unlimited_users && in_array( $selected_2FA_method, array("Google Authenticator", "miniOrange Soft Token", "Authy Authenticator"))){
2070
  update_option('mo2f_enable_2fa_prompt_on_login_page', 1);
2071
  }else{
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.16
7
  * Author: miniOrange
8
  * Author URI: https://miniorange.com
9
  * License: GPL2
2065
  $user_phone = $_SESSION['user_phone'] != 'false' ? $_SESSION['user_phone'] : $Mo2fdbQueries->get_user_detail( 'mo2f_user_phone', $user->ID );
2066
  }
2067
 
2068
+
2069
  if (!$is_nc_with_unlimited_users && in_array( $selected_2FA_method, array("Google Authenticator", "miniOrange Soft Token", "Authy Authenticator"))){
2070
  update_option('mo2f_enable_2fa_prompt_on_login_page', 1);
2071
  }else{
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.15
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -221,11 +221,14 @@ miniOrange authentication service has 15+ authentication methods.One time passco
221
 
222
  == Changelog ==
223
 
 
 
 
224
  = 5.0.15 =
225
  * Google Authenticator (2FA) : Added Google Authenticator option in the WP login page itself.
226
 
227
  = 5.0.14 =
228
- * Google Authenticator (2FA) : Bug Fixes.
229
 
230
  = 5.0.13 =
231
  * Google Authenticator (2FA) : Bug Fix and code optimization.
@@ -516,11 +519,14 @@ More descriptive setup messages and UI changes.
516
 
517
  == Upgrade Notice ==
518
 
 
 
 
519
  = 5.0.15 =
520
  * Google Authenticator (2FA) : Added Google Authenticator option in the WP login page itself.
521
 
522
  = 5.0.14 =
523
- * Google Authenticator (2FA) : Bug Fixes.
524
 
525
  = 5.0.13 =
526
  * Google Authenticator (2FA) : Bug Fix and code optimization.
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.16
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
221
 
222
  == Changelog ==
223
 
224
+ = 5.0.16 =
225
+ * Google Authenticator (2FA) : Bug fixes.
226
+
227
  = 5.0.15 =
228
  * Google Authenticator (2FA) : Added Google Authenticator option in the WP login page itself.
229
 
230
  = 5.0.14 =
231
+ * Google Authenticator (2FA) : Bug Fixs.
232
 
233
  = 5.0.13 =
234
  * Google Authenticator (2FA) : Bug Fix and code optimization.
519
 
520
  == Upgrade Notice ==
521
 
522
+ = 5.0.16 =
523
+ * Google Authenticator (2FA) : Bug fixes.
524
+
525
  = 5.0.15 =
526
  * Google Authenticator (2FA) : Added Google Authenticator option in the WP login page itself.
527
 
528
  = 5.0.14 =
529
+ * Google Authenticator (2FA) : Bug Fixs.
530
 
531
  = 5.0.13 =
532
  * Google Authenticator (2FA) : Bug Fix and code optimization.