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

Version Description

  • Google Authenticator (2FA) : Bug fix for user entry during plugin update.
Download this release

Release Info

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

Code changes from version 5.0.4 to 5.0.5

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.4', __FILE__ ) );
152
- wp_register_style( 'bootstrap', plugins_url( 'includes/css/bootstrap.min.css?version=5.0.4', __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.4', __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.4', __FILE__ ) );
237
  } else {
238
- wp_register_style( 'show-login', plugins_url( 'includes/css/show-login.css?version=5.0.4', __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.5', __FILE__ ) );
152
+ wp_register_style( 'bootstrap', plugins_url( 'includes/css/bootstrap.min.css?version=5.0.5', __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.5', __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.5', __FILE__ ) );
237
  } else {
238
+ wp_register_style( 'show-login', plugins_url( 'includes/css/show-login.css?version=5.0.5', __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.4', __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.5', __FILE__ ) );
34
  }
35
 
36
  function mo_auth_success_message() {
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.4', __FILE__ ) . '" />';
822
- echo '<link rel="stylesheet" type="text/css" href="' . plugins_url( 'includes/css/front_end_login.css?version=5.0.4', __FILE__ ) . '" />';
823
- echo '<link rel="stylesheet" type="text/css" href="' . plugins_url( 'includes/css/style_settings.css?version=5.0.4', __FILE__ ) . '" />';
824
- echo '<link rel="stylesheet" type="text/css" href="' . plugins_url( 'includes/css/hide-login.css?version=5.0.4', __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.5', __FILE__ ) . '" />';
822
+ echo '<link rel="stylesheet" type="text/css" href="' . plugins_url( 'includes/css/front_end_login.css?version=5.0.5', __FILE__ ) . '" />';
823
+ echo '<link rel="stylesheet" type="text/css" href="' . plugins_url( 'includes/css/style_settings.css?version=5.0.5', __FILE__ ) . '" />';
824
+ echo '<link rel="stylesheet" type="text/css" href="' . plugins_url( 'includes/css/hide-login.css?version=5.0.5', __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_mobile_configuration.php CHANGED
@@ -321,7 +321,7 @@ function mo2f_show_instruction_to_allusers( $user, $mo2f_second_factor ) {
321
 
322
  </table>
323
  <br>
324
- <?php if ( current_user_can( 'manage_options' ) && get_option( 'mo2f_miniorange_admin' ) == $user->ID ) { ?>
325
  <button type="button" class="button button-primary button-large" style="float:right;" data-toggle="modal"
326
  data-target="#deactivateAccount"><?php echo mo2f_lt( 'Deactivate plugin' ); ?></button>
327
 
321
 
322
  </table>
323
  <br>
324
+ <?php if ( get_option( 'mo2f_is_NC') && current_user_can( 'manage_options' ) && get_option( 'mo2f_miniorange_admin' ) == $user->ID ) { ?>
325
  <button type="button" class="button button-primary button-large" style="float:right;" data-toggle="modal"
326
  data-target="#deactivateAccount"><?php echo mo2f_lt( 'Deactivate plugin' ); ?></button>
327
 
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.4
7
  * Author: miniOrange
8
  * Author URI: https://miniorange.com
9
  * License: GPL2
@@ -174,8 +174,7 @@ class Miniorange_Authentication {
174
  }
175
 
176
  global $dbQueries;
177
- $user = wp_get_current_user();
178
- $user_id = $user->ID;
179
  $dbQueries->generate_tables();
180
  $dbQueries->insert_user( $user_id, array( 'user_id' => $user_id ) );
181
 
@@ -187,7 +186,7 @@ class Miniorange_Authentication {
187
  $phone = get_user_meta( $user_id, 'mo2f_user_phone', true );
188
  $user_phone = $phone ? $phone : get_user_meta( $user_id, 'mo2f_phone', true );
189
 
190
- $dbQueries->update_user_details( $user->ID,
191
  array(
192
  'mo2f_GoogleAuthenticator_config_status' => get_user_meta( $user_id, 'mo2f_google_authentication_status', true ),
193
  'mo2f_SecurityQuestions_config_status' => get_user_meta( $user_id, 'mo2f_kba_registration_status', true ),
@@ -386,17 +385,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.4', __FILE__ ) );
390
- wp_enqueue_style( 'bootstrap_style', plugins_url( 'includes/css/bootstrap.min.css?version=5.0.4', __FILE__ ) );
391
- wp_enqueue_style( 'mo_2_factor_admin_settings_phone_style', plugins_url( 'includes/css/phone.css?version=5.0.4', __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.4', __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.4', __FILE__ ) );
398
- wp_enqueue_style( 'mo_2_factor_admin_settings_phone_style', plugins_url( 'includes/css/phone.css?version=5.0.4', __FILE__ ) );
399
- wp_enqueue_style( 'bootstrap_style', plugins_url( 'includes/css/bootstrap.min.css?version=5.0.4', __FILE__ ) );
400
  wp_enqueue_style( 'mo_2_factor_wpb-fa', plugins_url( 'includes/css/font-awesome.min.css', __FILE__ ) );
401
  }
402
 
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.5
7
  * Author: miniOrange
8
  * Author URI: https://miniorange.com
9
  * License: GPL2
174
  }
175
 
176
  global $dbQueries;
177
+ $user_id = get_site_option( 'mo2f_miniorange_admin' );
 
178
  $dbQueries->generate_tables();
179
  $dbQueries->insert_user( $user_id, array( 'user_id' => $user_id ) );
180
 
186
  $phone = get_user_meta( $user_id, 'mo2f_user_phone', true );
187
  $user_phone = $phone ? $phone : get_user_meta( $user_id, 'mo2f_phone', true );
188
 
189
+ $dbQueries->update_user_details( $user_id,
190
  array(
191
  'mo2f_GoogleAuthenticator_config_status' => get_user_meta( $user_id, 'mo2f_google_authentication_status', true ),
192
  'mo2f_SecurityQuestions_config_status' => get_user_meta( $user_id, 'mo2f_kba_registration_status', true ),
385
  }
386
 
387
  function mo_2_factor_enable_frontend_style() {
388
+ wp_enqueue_style( 'mo2f_frontend_login_style', plugins_url( 'includes/css/front_end_login.css?version=5.0.5', __FILE__ ) );
389
+ wp_enqueue_style( 'bootstrap_style', plugins_url( 'includes/css/bootstrap.min.css?version=5.0.5', __FILE__ ) );
390
+ wp_enqueue_style( 'mo_2_factor_admin_settings_phone_style', plugins_url( 'includes/css/phone.css?version=5.0.5', __FILE__ ) );
391
  wp_enqueue_style( 'mo_2_factor_wpb-fa', plugins_url( 'includes/css/font-awesome.min.css', __FILE__ ) );
392
+ wp_enqueue_style( 'mo2f_login_popup_style', plugins_url( 'includes/css/mo2f_login_popup_ui.css?version=5.0.5', __FILE__ ) );
393
  }
394
 
395
  function plugin_settings_style() {
396
+ wp_enqueue_style( 'mo_2_factor_admin_settings_style', plugins_url( 'includes/css/style_settings.css?version=5.0.5', __FILE__ ) );
397
+ wp_enqueue_style( 'mo_2_factor_admin_settings_phone_style', plugins_url( 'includes/css/phone.css?version=5.0.5', __FILE__ ) );
398
+ wp_enqueue_style( 'bootstrap_style', plugins_url( 'includes/css/bootstrap.min.css?version=5.0.5', __FILE__ ) );
399
  wp_enqueue_style( 'mo_2_factor_wpb-fa', plugins_url( 'includes/css/font-awesome.min.css', __FILE__ ) );
400
  }
401
 
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.4
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.4 =
223
  * Google Authenticator (2FA) : Workaround for errors during sending of OTP during registration.
224
 
@@ -481,6 +484,9 @@ More descriptive setup messages and UI changes.
481
 
482
  == Upgrade Notice ==
483
 
 
 
 
484
  = 5.0.4 =
485
  * Google Authenticator (2FA) : Workaround for errors during sending of OTP during registration.
486
 
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.5
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.5 =
223
+ * Google Authenticator (2FA) : Bug fix for user entry during plugin update.
224
+
225
  = 5.0.4 =
226
  * Google Authenticator (2FA) : Workaround for errors during sending of OTP during registration.
227
 
484
 
485
  == Upgrade Notice ==
486
 
487
+ = 5.0.5 =
488
+ * Google Authenticator (2FA) : Bug fix for user entry during plugin update.
489
+
490
  = 5.0.4 =
491
  * Google Authenticator (2FA) : Workaround for errors during sending of OTP during registration.
492