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

Version Description

  • Google Authenticator (2FA) : Minor fix for removing warings.
Download this release

Release Info

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

Code changes from version 5.0.0 to 5.0.3

class-miniorange-2-factor-login.php CHANGED
@@ -148,8 +148,8 @@ class Miniorange_Mobile_Login {
148
  }
149
 
150
  function mo_2_factor_hide_login() {
151
- wp_register_style( 'hide-login', plugins_url( 'includes/css/hide-login.css?version=5.0.0', __FILE__ ) );
152
- wp_register_style( 'bootstrap', plugins_url( 'includes/css/bootstrap.min.css?version=5.0.0', __FILE__ ) );
153
 
154
  wp_enqueue_style( 'hide-login' );
155
  wp_enqueue_style( 'bootstrap' );
@@ -211,7 +211,7 @@ class Miniorange_Mobile_Login {
211
  }
212
 
213
  function mo_2_factor_show_login_with_password_when_phonelogin_enabled() {
214
- wp_register_style( 'show-login', plugins_url( 'includes/css/show-login.css?version=5.0.0', __FILE__ ) );
215
  wp_enqueue_style( 'show-login' );
216
  }
217
 
@@ -233,9 +233,9 @@ class Miniorange_Mobile_Login {
233
 
234
  function mo_2_factor_show_login() {
235
  if ( get_option( 'mo2f_enable_login_with_2nd_factor' ) ) {
236
- wp_register_style( 'show-login', plugins_url( 'includes/css/hide-login-form.css?version=5.0.0', __FILE__ ) );
237
  } else {
238
- wp_register_style( 'show-login', plugins_url( 'includes/css/show-login.css?version=5.0.0', __FILE__ ) );
239
  }
240
  wp_enqueue_style( 'show-login' );
241
  }
148
  }
149
 
150
  function mo_2_factor_hide_login() {
151
+ wp_register_style( 'hide-login', plugins_url( 'includes/css/hide-login.css?version=5.0.3', __FILE__ ) );
152
+ wp_register_style( 'bootstrap', plugins_url( 'includes/css/bootstrap.min.css?version=5.0.3', __FILE__ ) );
153
 
154
  wp_enqueue_style( 'hide-login' );
155
  wp_enqueue_style( 'bootstrap' );
211
  }
212
 
213
  function mo_2_factor_show_login_with_password_when_phonelogin_enabled() {
214
+ wp_register_style( 'show-login', plugins_url( 'includes/css/show-login.css?version=5.0.3', __FILE__ ) );
215
  wp_enqueue_style( 'show-login' );
216
  }
217
 
233
 
234
  function mo_2_factor_show_login() {
235
  if ( get_option( 'mo2f_enable_login_with_2nd_factor' ) ) {
236
+ wp_register_style( 'show-login', plugins_url( 'includes/css/hide-login-form.css?version=5.0.3', __FILE__ ) );
237
  } else {
238
+ wp_register_style( 'show-login', plugins_url( 'includes/css/show-login.css?version=5.0.3', __FILE__ ) );
239
  }
240
  wp_enqueue_style( 'show-login' );
241
  }
class-miniorange-2-factor-user-registration.php CHANGED
@@ -30,7 +30,7 @@ class Miniorange_User_Register {
30
  }
31
 
32
  function plugin_settings_style() {
33
- wp_enqueue_style( 'mo_2_factor_admin_settings_style', plugins_url( 'includes/css/style_settings.css?version=5.0.0', __FILE__ ) );
34
  }
35
 
36
  function mo_auth_success_message() {
30
  }
31
 
32
  function plugin_settings_style() {
33
+ wp_enqueue_style( 'mo_2_factor_admin_settings_style', plugins_url( 'includes/css/style_settings.css?version=5.0.3', __FILE__ ) );
34
  }
35
 
36
  function mo_auth_success_message() {
database/database_functions.php CHANGED
@@ -68,8 +68,8 @@ class Mo2fDB {
68
  function get_user_detail( $column_name, $user_id ) {
69
  global $wpdb;
70
  $user_column_detail = $wpdb->get_results( "SELECT " . $column_name . " FROM " . $this->userDetailsTable . " WHERE user_id = " . $user_id . ";" );
71
-
72
- return empty( $user_column_detail ) ? '' : get_object_vars( $user_column_detail[0] )[ $column_name ];
73
  }
74
 
75
  function delete_user_details( $user_id ) {
68
  function get_user_detail( $column_name, $user_id ) {
69
  global $wpdb;
70
  $user_column_detail = $wpdb->get_results( "SELECT " . $column_name . " FROM " . $this->userDetailsTable . " WHERE user_id = " . $user_id . ";" );
71
+ $value = empty( $user_column_detail ) ? '' : get_object_vars($user_column_detail[0]);
72
+ return $value == '' ? '' : $value[ $column_name ];
73
  }
74
 
75
  function delete_user_details( $user_id ) {
miniorange_2_factor_common_login.php CHANGED
@@ -818,10 +818,10 @@ function mo2f_customize_logo() { ?>
818
  function echo_js_css_files() {
819
  echo '<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>';
820
  echo '<script src="' . plugins_url( 'includes/js/bootstrap.min.js', __FILE__ ) . '" ></script>';
821
- echo '<link rel="stylesheet" type="text/css" href="' . plugins_url( 'includes/css/bootstrap.min.css?version=5.0.0', __FILE__ ) . '" />';
822
- echo '<link rel="stylesheet" type="text/css" href="' . plugins_url( 'includes/css/front_end_login.css?version=5.0.0', __FILE__ ) . '" />';
823
- echo '<link rel="stylesheet" type="text/css" href="' . plugins_url( 'includes/css/style_settings.css?version=5.0.0', __FILE__ ) . '" />';
824
- echo '<link rel="stylesheet" type="text/css" href="' . plugins_url( 'includes/css/hide-login.css?version=5.0.0', __FILE__ ) . '" />';
825
 
826
  if ( get_option( 'mo2f_personalization_ui' ) ) {
827
  echo '<link rel="stylesheet" type="text/css" href="' . plugins_url( 'includes/css/mo2f_login_popup_ui.css', __FILE__ ) . '" />';
818
  function echo_js_css_files() {
819
  echo '<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>';
820
  echo '<script src="' . plugins_url( 'includes/js/bootstrap.min.js', __FILE__ ) . '" ></script>';
821
+ echo '<link rel="stylesheet" type="text/css" href="' . plugins_url( 'includes/css/bootstrap.min.css?version=5.0.3', __FILE__ ) . '" />';
822
+ echo '<link rel="stylesheet" type="text/css" href="' . plugins_url( 'includes/css/front_end_login.css?version=5.0.3', __FILE__ ) . '" />';
823
+ echo '<link rel="stylesheet" type="text/css" href="' . plugins_url( 'includes/css/style_settings.css?version=5.0.3', __FILE__ ) . '" />';
824
+ echo '<link rel="stylesheet" type="text/css" href="' . plugins_url( 'includes/css/hide-login.css?version=5.0.3', __FILE__ ) . '" />';
825
 
826
  if ( get_option( 'mo2f_personalization_ui' ) ) {
827
  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 Authenticator, QR Code, Push Notification, Soft Token and Security Questions(KBA) for Unlimited Users in the free version of the plugin.
6
- * Version: 5.0.0
7
  * Author: miniOrange
8
  * Author URI: https://miniorange.com
9
  * License: GPL2
@@ -386,17 +386,17 @@ class Miniorange_Authentication {
386
  }
387
 
388
  function mo_2_factor_enable_frontend_style() {
389
- wp_enqueue_style( 'mo2f_frontend_login_style', plugins_url( 'includes/css/front_end_login.css?version=5.0.0', __FILE__ ) );
390
- wp_enqueue_style( 'bootstrap_style', plugins_url( 'includes/css/bootstrap.min.css?version=5.0.0', __FILE__ ) );
391
- wp_enqueue_style( 'mo_2_factor_admin_settings_phone_style', plugins_url( 'includes/css/phone.css?version=5.0.0', __FILE__ ) );
392
  wp_enqueue_style( 'mo_2_factor_wpb-fa', plugins_url( 'includes/css/font-awesome.min.css', __FILE__ ) );
393
- wp_enqueue_style( 'mo2f_login_popup_style', plugins_url( 'includes/css/mo2f_login_popup_ui.css?version=5.0.0', __FILE__ ) );
394
  }
395
 
396
  function plugin_settings_style() {
397
- wp_enqueue_style( 'mo_2_factor_admin_settings_style', plugins_url( 'includes/css/style_settings.css?version=5.0.0', __FILE__ ) );
398
- wp_enqueue_style( 'mo_2_factor_admin_settings_phone_style', plugins_url( 'includes/css/phone.css?version=5.0.0', __FILE__ ) );
399
- wp_enqueue_style( 'bootstrap_style', plugins_url( 'includes/css/bootstrap.min.css?version=5.0.0', __FILE__ ) );
400
  wp_enqueue_style( 'mo_2_factor_wpb-fa', plugins_url( 'includes/css/font-awesome.min.css', __FILE__ ) );
401
  }
402
 
@@ -1901,7 +1901,7 @@ class Miniorange_Authentication {
1901
  ( isset( $_POST['option'] ) && $_POST['option'] == 'mo2f_save_standard_plan_auth_methods' )
1902
  ) {
1903
 
1904
- $selected_2FA_method = MO2f_Utility::mo2f_decode_2_factor( isset( $_POST['mo2f_configured_2FA_method_free_plan'] ) ? $_POST['mo2f_configured_2FA_method_free_plan'] : _POST['mo2f_selected_action_standard_plan'], "wpdb" );
1905
  $selected_action = isset( $_POST['mo2f_selected_action_free_plan'] ) ? $_POST['mo2f_selected_action_free_plan'] : $_POST['mo2f_selected_action_standard_plan'];
1906
  $user_phone = '';
1907
  if ( isset( $_SESSION['user_phone'] ) ) {
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 Unlimited Users in the free version of the plugin.
6
+ * Version: 5.0.3
7
  * Author: miniOrange
8
  * Author URI: https://miniorange.com
9
  * License: GPL2
386
  }
387
 
388
  function mo_2_factor_enable_frontend_style() {
389
+ wp_enqueue_style( 'mo2f_frontend_login_style', plugins_url( 'includes/css/front_end_login.css?version=5.0.3', __FILE__ ) );
390
+ wp_enqueue_style( 'bootstrap_style', plugins_url( 'includes/css/bootstrap.min.css?version=5.0.3', __FILE__ ) );
391
+ wp_enqueue_style( 'mo_2_factor_admin_settings_phone_style', plugins_url( 'includes/css/phone.css?version=5.0.3', __FILE__ ) );
392
  wp_enqueue_style( 'mo_2_factor_wpb-fa', plugins_url( 'includes/css/font-awesome.min.css', __FILE__ ) );
393
+ wp_enqueue_style( 'mo2f_login_popup_style', plugins_url( 'includes/css/mo2f_login_popup_ui.css?version=5.0.3', __FILE__ ) );
394
  }
395
 
396
  function plugin_settings_style() {
397
+ wp_enqueue_style( 'mo_2_factor_admin_settings_style', plugins_url( 'includes/css/style_settings.css?version=5.0.3', __FILE__ ) );
398
+ wp_enqueue_style( 'mo_2_factor_admin_settings_phone_style', plugins_url( 'includes/css/phone.css?version=5.0.3', __FILE__ ) );
399
+ wp_enqueue_style( 'bootstrap_style', plugins_url( 'includes/css/bootstrap.min.css?version=5.0.3', __FILE__ ) );
400
  wp_enqueue_style( 'mo_2_factor_wpb-fa', plugins_url( 'includes/css/font-awesome.min.css', __FILE__ ) );
401
  }
402
 
1901
  ( isset( $_POST['option'] ) && $_POST['option'] == 'mo2f_save_standard_plan_auth_methods' )
1902
  ) {
1903
 
1904
+ $selected_2FA_method = MO2f_Utility::mo2f_decode_2_factor( isset( $_POST['mo2f_configured_2FA_method_free_plan'] ) ? $_POST['mo2f_configured_2FA_method_free_plan'] : $_POST['mo2f_selected_action_standard_plan'], "wpdb" );
1905
  $selected_action = isset( $_POST['mo2f_selected_action_free_plan'] ) ? $_POST['mo2f_selected_action_free_plan'] : $_POST['mo2f_selected_action_standard_plan'];
1906
  $user_phone = '';
1907
  if ( isset( $_SESSION['user_phone'] ) ) {
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.0
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -219,6 +219,15 @@ miniOrange authentication service has 15+ authentication methods.One time passco
219
 
220
  == Changelog ==
221
 
 
 
 
 
 
 
 
 
 
222
  = 5.0.0 =
223
  * Google Authenticator (2FA) : New UI Interface, 2-factor authentication for Unlimited Users.
224
  * This is a major release.
@@ -469,6 +478,15 @@ More descriptive setup messages and UI changes.
469
 
470
  == Upgrade Notice ==
471
 
 
 
 
 
 
 
 
 
 
472
  = 5.0.0 =
473
  * Google Authenticator (2FA) : New UI Interface, 2-factor authentication for Unlimited Users.
474
  * This is a major release.
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.3
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.3 =
223
+ * Google Authenticator (2FA) : Minor fix for removing warings.
224
+
225
+ = 5.0.2 =
226
+ * Google Authenticator (2FA) : Bug fix.
227
+
228
+ = 5.0.1 =
229
+ * Google Authenticator (2FA) : Bug fix.
230
+
231
  = 5.0.0 =
232
  * Google Authenticator (2FA) : New UI Interface, 2-factor authentication for Unlimited Users.
233
  * This is a major release.
478
 
479
  == Upgrade Notice ==
480
 
481
+ = 5.0.3 =
482
+ * Google Authenticator (2FA) : Minor fix for removing warings.
483
+
484
+ = 5.0.2 =
485
+ * Google Authenticator (2FA) : Bug fix.
486
+
487
+ = 5.0.1 =
488
+ * Google Authenticator (2FA) : Bug fix.
489
+
490
  = 5.0.0 =
491
  * Google Authenticator (2FA) : New UI Interface, 2-factor authentication for Unlimited Users.
492
  * This is a major release.