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

Version Description

  • Google Authenticator-Two Factor Authentication (2FA) : Minor Bug fix.
Download this release

Release Info

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

Code changes from version 5.1.19 to 5.1.20

class-customer-setup.php CHANGED
@@ -115,7 +115,7 @@ class Customer_Setup {
115
  $customer_feature = "V3";
116
  }
117
 
118
- $query = '[WordPress 2 Factor Authentication Plugin: ' . $customer_feature . ' - V 5.1.19]: ' . $message;
119
 
120
  $content = '<div >First Name :' . $user->user_firstname . '<br><br>Last Name :' . $user->user_lastname . ' <br><br>Company :<a href="' . $_SERVER['SERVER_NAME'] . '" target="_blank" >' . $_SERVER['SERVER_NAME'] . '</a><br><br>Phone Number :' . $phone . '<br><br>Email :<a href="mailto:' . $fromEmail . '" target="_blank">' . $fromEmail . '</a><br><br>Query :' . $query . '</div>';
121
 
@@ -613,7 +613,7 @@ class Customer_Setup {
613
  $customer_feature = "V3";
614
  }
615
 
616
- $query = '[WordPress 2 Factor Authentication Plugin: ' . $customer_feature . ' - V 5.1.19]: ' . $query;
617
  $fields = array(
618
  'firstName' => $user->user_firstname,
619
  'lastName' => $user->user_lastname,
115
  $customer_feature = "V3";
116
  }
117
 
118
+ $query = '[WordPress 2 Factor Authentication Plugin: ' . $customer_feature . ' - V 5.1.20]: ' . $message;
119
 
120
  $content = '<div >First Name :' . $user->user_firstname . '<br><br>Last Name :' . $user->user_lastname . ' <br><br>Company :<a href="' . $_SERVER['SERVER_NAME'] . '" target="_blank" >' . $_SERVER['SERVER_NAME'] . '</a><br><br>Phone Number :' . $phone . '<br><br>Email :<a href="mailto:' . $fromEmail . '" target="_blank">' . $fromEmail . '</a><br><br>Query :' . $query . '</div>';
121
 
613
  $customer_feature = "V3";
614
  }
615
 
616
+ $query = '[WordPress 2 Factor Authentication Plugin: ' . $customer_feature . ' - V 5.1.20]: ' . $query;
617
  $fields = array(
618
  'firstName' => $user->user_firstname,
619
  'lastName' => $user->user_lastname,
class-miniorange-2-factor-login.php CHANGED
@@ -145,8 +145,8 @@ class Miniorange_Mobile_Login {
145
  }
146
 
147
  function mo_2_factor_hide_login() {
148
- wp_register_style( 'hide-login', plugins_url( 'includes/css/hide-login.css?version=5.1.19', __FILE__ ) );
149
- wp_register_style( 'bootstrap', plugins_url( 'includes/css/bootstrap.min.css?version=5.1.19', __FILE__ ) );
150
  wp_enqueue_style( 'hide-login' );
151
  wp_enqueue_style( 'bootstrap' );
152
 
@@ -198,7 +198,7 @@ class Miniorange_Mobile_Login {
198
  }
199
 
200
  function mo_2_factor_show_login_with_password_when_phonelogin_enabled() {
201
- wp_register_style( 'show-login', plugins_url( 'includes/css/show-login.css?version=5.1.19', __FILE__ ) );
202
  wp_enqueue_style( 'show-login' );
203
  }
204
 
@@ -220,9 +220,9 @@ class Miniorange_Mobile_Login {
220
 
221
  function mo_2_factor_show_login() {
222
  if ( get_option( 'mo2f_enable_login_with_2nd_factor' ) ) {
223
- wp_register_style( 'show-login', plugins_url( 'includes/css/hide-login-form.css?version=5.1.19', __FILE__ ) );
224
  } else {
225
- wp_register_style( 'show-login', plugins_url( 'includes/css/show-login.css?version=5.1.19', __FILE__ ) );
226
  }
227
  wp_enqueue_style( 'show-login' );
228
  }
145
  }
146
 
147
  function mo_2_factor_hide_login() {
148
+ wp_register_style( 'hide-login', plugins_url( 'includes/css/hide-login.css?version=5.1.20', __FILE__ ) );
149
+ wp_register_style( 'bootstrap', plugins_url( 'includes/css/bootstrap.min.css?version=5.1.20', __FILE__ ) );
150
  wp_enqueue_style( 'hide-login' );
151
  wp_enqueue_style( 'bootstrap' );
152
 
198
  }
199
 
200
  function mo_2_factor_show_login_with_password_when_phonelogin_enabled() {
201
+ wp_register_style( 'show-login', plugins_url( 'includes/css/show-login.css?version=5.1.20', __FILE__ ) );
202
  wp_enqueue_style( 'show-login' );
203
  }
204
 
220
 
221
  function mo_2_factor_show_login() {
222
  if ( get_option( 'mo2f_enable_login_with_2nd_factor' ) ) {
223
+ wp_register_style( 'show-login', plugins_url( 'includes/css/hide-login-form.css?version=5.1.20', __FILE__ ) );
224
  } else {
225
+ wp_register_style( 'show-login', plugins_url( 'includes/css/show-login.css?version=5.1.20', __FILE__ ) );
226
  }
227
  wp_enqueue_style( 'show-login' );
228
  }
miniorange_2_factor_common_login.php CHANGED
@@ -683,10 +683,11 @@ function mo2f_get_otp_authentication_prompt( $login_status, $login_message, $red
683
  <div id="otpMessage">
684
  <p class="mo2fa_display_message_frontend"><?php echo $login_message; ?></p>
685
  </div>
686
- <?php } ?>
687
-
688
- <br><span><b>Attempts left</b>:</span> <?php echo $attempts;?><br>
689
  <br>
 
690
  <div id="showOTP">
691
  <div class="mo2f-login-container">
692
  <form name="f" id="mo2f_submitotp_loginform" method="post">
@@ -856,10 +857,10 @@ function mo2f_customize_logo() { ?>
856
  function echo_js_css_files() {
857
  echo '<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>';
858
  echo '<script src="' . plugins_url( 'includes/js/bootstrap.min.js', __FILE__ ) . '" ></script>';
859
- echo '<link rel="stylesheet" type="text/css" href="' . plugins_url( 'includes/css/bootstrap.min.css?version=5.1.19', __FILE__ ) . '" />';
860
- echo '<link rel="stylesheet" type="text/css" href="' . plugins_url( 'includes/css/front_end_login.css?version=5.1.19', __FILE__ ) . '" />';
861
- echo '<link rel="stylesheet" type="text/css" href="' . plugins_url( 'includes/css/style_settings.css?version=5.1.19', __FILE__ ) . '" />';
862
- echo '<link rel="stylesheet" type="text/css" href="' . plugins_url( 'includes/css/hide-login.css?version=5.1.19', __FILE__ ) . '" />';
863
 
864
  if ( get_option( 'mo2f_personalization_ui' ) ) {
865
  echo '<link rel="stylesheet" type="text/css" href="' . plugins_url( 'includes/css/mo2f_login_popup_ui.css', __FILE__ ) . '" />';
683
  <div id="otpMessage">
684
  <p class="mo2fa_display_message_frontend"><?php echo $login_message; ?></p>
685
  </div>
686
+ <?php } ?><br><?php
687
+ if(get_option( 'mo2f_enable_brute_force' )){?>
688
+ <span><b>Attempts left</b>:</span> <?php echo $attempts;?><br>
689
  <br>
690
+ <?php }?>
691
  <div id="showOTP">
692
  <div class="mo2f-login-container">
693
  <form name="f" id="mo2f_submitotp_loginform" method="post">
857
  function echo_js_css_files() {
858
  echo '<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>';
859
  echo '<script src="' . plugins_url( 'includes/js/bootstrap.min.js', __FILE__ ) . '" ></script>';
860
+ echo '<link rel="stylesheet" type="text/css" href="' . plugins_url( 'includes/css/bootstrap.min.css?version=5.1.20', __FILE__ ) . '" />';
861
+ echo '<link rel="stylesheet" type="text/css" href="' . plugins_url( 'includes/css/front_end_login.css?version=5.1.20', __FILE__ ) . '" />';
862
+ echo '<link rel="stylesheet" type="text/css" href="' . plugins_url( 'includes/css/style_settings.css?version=5.1.20', __FILE__ ) . '" />';
863
+ echo '<link rel="stylesheet" type="text/css" href="' . plugins_url( 'includes/css/hide-login.css?version=5.1.20', __FILE__ ) . '" />';
864
 
865
  if ( get_option( 'mo2f_personalization_ui' ) ) {
866
  echo '<link rel="stylesheet" type="text/css" href="' . plugins_url( 'includes/css/mo2f_login_popup_ui.css', __FILE__ ) . '" />';
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/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.1.19
7
  * Author: miniOrange
8
  * Author URI: https://miniorange.com
9
  * License: GPL2
@@ -416,21 +416,21 @@ class Miniorange_Authentication {
416
  }
417
 
418
  function mo_2_factor_enable_frontend_style() {
419
- wp_enqueue_style( 'mo2f_frontend_login_style', plugins_url( 'includes/css/front_end_login.css?version=5.1.19', __FILE__ ) );
420
  wp_enqueue_style( 'bootstrap_style', plugins_url( 'includes/css/bootstrap.min.css?version=5.1.18', __FILE__ ) );
421
  wp_enqueue_style( 'mo_2_factor_admin_settings_phone_style', plugins_url( 'includes/css/phone.css?version=5.1.18', __FILE__ ) );
422
  wp_enqueue_style( 'mo_2_factor_wpb-fa', plugins_url( 'includes/css/font-awesome.min.css', __FILE__ ) );
423
- wp_enqueue_style( 'mo2f_login_popup_style', plugins_url( 'includes/css/mo2f_login_popup_ui.css?version=5.1.19', __FILE__ ) );
424
  }
425
 
426
  function plugin_settings_style( $mo2fa_hook_page ) {
427
  if ( 'toplevel_page_miniOrange_2_factor_settings' != $mo2fa_hook_page ) {
428
  return;
429
  }
430
- wp_enqueue_style( 'mo_2_factor_admin_settings_style', plugins_url( 'includes/css/style_settings.css?version=5.1.19', __FILE__ ) );
431
- wp_enqueue_style( 'mo_2_factor_admin_settings_phone_style', plugins_url( 'includes/css/phone.css?version=5.1.19', __FILE__ ) );
432
- wp_enqueue_style( 'bootstrap_style', plugins_url( 'includes/css/bootstrap.min.css?version=5.1.19', __FILE__ ) );
433
- wp_enqueue_style( 'bootstrap_style_ass', plugins_url( 'includes/css/bootstrap-tour-standalone.css?version=5.1.19', __FILE__ ) );
434
  wp_enqueue_style( 'mo_2_factor_wpb-fa', plugins_url( 'includes/css/font-awesome.min.css', __FILE__ ) );
435
  wp_enqueue_style( 'mo2f_ns_admin_settings_datatable_style', plugins_url('includes/css/jquery.dataTables.min.css', __FILE__));
436
  }
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.1.20
7
  * Author: miniOrange
8
  * Author URI: https://miniorange.com
9
  * License: GPL2
416
  }
417
 
418
  function mo_2_factor_enable_frontend_style() {
419
+ wp_enqueue_style( 'mo2f_frontend_login_style', plugins_url( 'includes/css/front_end_login.css?version=5.1.20', __FILE__ ) );
420
  wp_enqueue_style( 'bootstrap_style', plugins_url( 'includes/css/bootstrap.min.css?version=5.1.18', __FILE__ ) );
421
  wp_enqueue_style( 'mo_2_factor_admin_settings_phone_style', plugins_url( 'includes/css/phone.css?version=5.1.18', __FILE__ ) );
422
  wp_enqueue_style( 'mo_2_factor_wpb-fa', plugins_url( 'includes/css/font-awesome.min.css', __FILE__ ) );
423
+ wp_enqueue_style( 'mo2f_login_popup_style', plugins_url( 'includes/css/mo2f_login_popup_ui.css?version=5.1.20', __FILE__ ) );
424
  }
425
 
426
  function plugin_settings_style( $mo2fa_hook_page ) {
427
  if ( 'toplevel_page_miniOrange_2_factor_settings' != $mo2fa_hook_page ) {
428
  return;
429
  }
430
+ wp_enqueue_style( 'mo_2_factor_admin_settings_style', plugins_url( 'includes/css/style_settings.css?version=5.1.20', __FILE__ ) );
431
+ wp_enqueue_style( 'mo_2_factor_admin_settings_phone_style', plugins_url( 'includes/css/phone.css?version=5.1.20', __FILE__ ) );
432
+ wp_enqueue_style( 'bootstrap_style', plugins_url( 'includes/css/bootstrap.min.css?version=5.1.20', __FILE__ ) );
433
+ wp_enqueue_style( 'bootstrap_style_ass', plugins_url( 'includes/css/bootstrap-tour-standalone.css?version=5.1.20', __FILE__ ) );
434
  wp_enqueue_style( 'mo_2_factor_wpb-fa', plugins_url( 'includes/css/font-awesome.min.css', __FILE__ ) );
435
  wp_enqueue_style( 'mo2f_ns_admin_settings_datatable_style', plugins_url('includes/css/jquery.dataTables.min.css', __FILE__));
436
  }
network_security/class_miniorange_2fa_network_security.php CHANGED
@@ -34,7 +34,7 @@ class class_miniorange_2fa_network_security {
34
 
35
  public function mo2f_network_init(){
36
  $userIp = MO2f_Utility::get_client_ipaddress();
37
- $userIp='127.0.0.1';
38
  $mo2f_ns_config = new MO2f_Handler();
39
  $isIpBlocked = false;
40
  if ($mo2f_ns_config->is_whitelisted($userIp)) {
34
 
35
  public function mo2f_network_init(){
36
  $userIp = MO2f_Utility::get_client_ipaddress();
37
+
38
  $mo2f_ns_config = new MO2f_Handler();
39
  $isIpBlocked = false;
40
  if ($mo2f_ns_config->is_whitelisted($userIp)) {
network_security/views/miniorange_network_security_brute_force.php CHANGED
@@ -58,7 +58,7 @@ function mo2f_show_2_factor_login_security($current_user){
58
 
59
  <br>
60
  <script>
61
- <?php if (!MO2f_Utility::is_customer_registered()) { ?>
62
  jQuery( document ).ready(function() {
63
  //jQuery(".mo2f_table_layout :input").prop("disabled", true);
64
  jQuery(".mo2f_table_layout :input[type=text]").val("");
58
 
59
  <br>
60
  <script>
61
+ <?php if (!MO2f_Utility::mo2f_is_customer_registered()) { ?>
62
  jQuery( document ).ready(function() {
63
  //jQuery(".mo2f_table_layout :input").prop("disabled", true);
64
  jQuery(".mo2f_table_layout :input[type=text]").val("");
readme.txt CHANGED
@@ -5,7 +5,7 @@ Donate link: https://miniorange.com/
5
  Requires at least: 3.0.1
6
  Tested up to: 5.0.2
7
  Requires PHP: 5.3.0
8
- Stable tag: 5.1.19
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -232,7 +232,10 @@ miniOrange authentication service has 15+ authentication methods.One time passco
232
 
233
  == Changelog ==
234
 
235
- = 5.1.18 =
 
 
 
236
  * Google Authenticator-Two Factor Authentication (2FA) : Adding basic Security Features Monitorning, IP blocking and login transaction report.
237
 
238
  = 5.1.18 =
@@ -590,6 +593,9 @@ More descriptive setup messages and UI changes.
590
 
591
  == Upgrade Notice ==
592
 
 
 
 
593
  = 5.1.19 =
594
  * Google Authenticator-Two Factor Authentication (2FA) : Adding basic Security Features Monitorning, IP blocking and login transaction report.
595
 
5
  Requires at least: 3.0.1
6
  Tested up to: 5.0.2
7
  Requires PHP: 5.3.0
8
+ Stable tag: 5.1.20
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
232
 
233
  == Changelog ==
234
 
235
+ = 5.1.20 =
236
+ * Google Authenticator-Two Factor Authentication (2FA) : Minor Bug fix.
237
+
238
+ = 5.1.19 =
239
  * Google Authenticator-Two Factor Authentication (2FA) : Adding basic Security Features Monitorning, IP blocking and login transaction report.
240
 
241
  = 5.1.18 =
593
 
594
  == Upgrade Notice ==
595
 
596
+ = 5.1.20 =
597
+ * Google Authenticator-Two Factor Authentication (2FA) : Minor Bug fix.
598
+
599
  = 5.1.19 =
600
  * Google Authenticator-Two Factor Authentication (2FA) : Adding basic Security Features Monitorning, IP blocking and login transaction report.
601
 
views/feedback_form.php CHANGED
@@ -10,7 +10,7 @@
10
  wp_enqueue_style( 'wp-pointer' );
11
  wp_enqueue_script( 'wp-pointer' );
12
  wp_enqueue_script( 'utils' );
13
- wp_enqueue_style( 'mo_2_factor_admin_plugins_page_style', plugins_url( '/../includes/css/mo2f_plugins_page.css?version=5.1.19', __FILE__ ) );
14
 
15
  $action = 'install-plugin';
16
  $slug = 'miniorange-google-authenticator';
10
  wp_enqueue_style( 'wp-pointer' );
11
  wp_enqueue_script( 'wp-pointer' );
12
  wp_enqueue_script( 'utils' );
13
+ wp_enqueue_style( 'mo_2_factor_admin_plugins_page_style', plugins_url( '/../includes/css/mo2f_plugins_page.css?version=5.1.20', __FILE__ ) );
14
 
15
  $action = 'install-plugin';
16
  $slug = 'miniorange-google-authenticator';