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

Version Description

  • Google Authenticator (2FA) : Workaround for errors during sending of OTP during registration.
Download this release

Release Info

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

Code changes from version 5.0.3 to 5.0.4

class-customer-setup.php CHANGED
@@ -290,7 +290,9 @@ class Customer_Setup {
290
  }
291
  curl_close( $ch );
292
 
293
- return $content;
 
 
294
  }
295
 
296
  function get_customer_transactions( $cKey, $apiKey ) {
290
  }
291
  curl_close( $ch );
292
 
293
+ $currentTimeInMillis = round(microtime(true) * 1000);
294
+
295
+ return empty($content) ? $currentTimeInMillis : $content;
296
  }
297
 
298
  function get_customer_transactions( $cKey, $apiKey ) {
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.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,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.3', __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.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
  }
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
  }
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
 
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
  }
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.3', __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.4', __FILE__ ) );
34
  }
35
 
36
  function mo_auth_success_message() {
class-rba-attributes.php CHANGED
@@ -98,7 +98,9 @@ class Miniorange_Rba_Attributes {
98
  }
99
  curl_close( $ch );
100
 
101
- return $content;
 
 
102
  }
103
 
104
  function make_curl_call( $url, $fields, $http_header_array ) {
98
  }
99
  curl_close( $ch );
100
 
101
+ $currentTimeInMillis = round(microtime(true) * 1000);
102
+
103
+ return empty($content) ? $currentTimeInMillis : $content;
104
  }
105
 
106
  function make_curl_call( $url, $fields, $http_header_array ) {
class-two-factor-setup.php CHANGED
@@ -101,7 +101,9 @@ class Two_Factor_Setup {
101
  }
102
  curl_close( $ch );
103
 
104
- return $content;
 
 
105
  }
106
 
107
  function make_curl_call( $url, $fields, $http_header_array ) {
101
  }
102
  curl_close( $ch );
103
 
104
+ $currentTimeInMillis = round(microtime(true) * 1000);
105
+
106
+ return empty($content) ? $currentTimeInMillis : $content;
107
  }
108
 
109
  function make_curl_call( $url, $fields, $http_header_array ) {
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.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__ ) . '" />';
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__ ) . '" />';
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.3
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.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
 
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
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
 
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.3
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.3 =
223
  * Google Authenticator (2FA) : Minor fix for removing warings.
224
 
@@ -478,6 +481,9 @@ More descriptive setup messages and UI changes.
478
 
479
  == Upgrade Notice ==
480
 
 
 
 
481
  = 5.0.3 =
482
  * Google Authenticator (2FA) : Minor fix for removing warings.
483
 
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
 
220
  == Changelog ==
221
 
222
+ = 5.0.4 =
223
+ * Google Authenticator (2FA) : Workaround for errors during sending of OTP during registration.
224
+
225
  = 5.0.3 =
226
  * Google Authenticator (2FA) : Minor fix for removing warings.
227
 
481
 
482
  == Upgrade Notice ==
483
 
484
+ = 5.0.4 =
485
+ * Google Authenticator (2FA) : Workaround for errors during sending of OTP during registration.
486
+
487
  = 5.0.3 =
488
  * Google Authenticator (2FA) : Minor fix for removing warings.
489