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

Version Description

  • Google Authenticator (2FA) : Login error fix. Please skip version 4.5.9 and update to version 4.6.1
Download this release

Release Info

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

Code changes from version 4.5.9 to 4.6.1

class-utility.php CHANGED
@@ -192,19 +192,23 @@ class MO2f_Utility{
192
  public static function mo2f_get_cookie_values($cookiename){
193
  $key = get_option('mo2f_customer_token');
194
 
195
- $decrypted_data = MO2f_Utility::decrypt_data(base64_decode($_COOKIE[$cookiename]), $key);
196
- $decrypted_data_array = explode('&', $decrypted_data);
197
-
198
- $cookie_value = $decrypted_data_array[0];
199
- $cookie_creation_time = new DateTime($decrypted_data_array[1]);
200
- $current_time = new DateTime('now');
201
-
202
- $interval = $cookie_creation_time->diff($current_time);
203
- $minutes = $interval->format('%i');
 
204
 
205
- $is_cookie_valid = $minutes <= 5 ? true : false;
206
-
207
- return $is_cookie_valid ? $cookie_value : false;
 
 
 
208
  }
209
 
210
  /**
192
  public static function mo2f_get_cookie_values($cookiename){
193
  $key = get_option('mo2f_customer_token');
194
 
195
+ if(isset($_COOKIE[$cookiename])){
196
+ $decrypted_data = MO2f_Utility::decrypt_data(base64_decode($_COOKIE[$cookiename]), $key);
197
+ $decrypted_data_array = explode('&', $decrypted_data);
198
+
199
+ $cookie_value = $decrypted_data_array[0];
200
+ $cookie_creation_time = new DateTime($decrypted_data_array[1]);
201
+ $current_time = new DateTime('now');
202
+
203
+ $interval = $cookie_creation_time->diff($current_time);
204
+ $minutes = $interval->format('%i');
205
 
206
+ $is_cookie_valid = $minutes <= 5 ? true : false;
207
+
208
+ return $is_cookie_valid ? $cookie_value : false;
209
+ }else{
210
+ return false;
211
+ }
212
  }
213
 
214
  /**
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 for wordpress login. We Support Phone Call, SMS, Email Verification, QR Code, Push, Soft Token, Google Authenticator, Authy, Security Questions(KBA), Woocommerce front-end login, Shortcodes for custom login pages.
6
- * Version: 4.5.9
7
  * Author: miniOrange
8
  * Author URI: https://miniorange.com
9
  * License: GPL2
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 for wordpress login. We Support Phone Call, SMS, Email Verification, QR Code, Push, Soft Token, Google Authenticator, Authy, Security Questions(KBA), Woocommerce front-end login, Shortcodes for custom login pages.
6
+ * Version: 4.6.1
7
  * Author: miniOrange
8
  * Author URI: https://miniorange.com
9
  * License: GPL2
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://miniorange.com/
4
  Tags: google authenticator, two factor authentication, two factor, 2FA, 2 factor authentication, two step verification, 1 google authenticator, login, authy, authy two factor, Clef, 2 Factor, yubico, Two-Factor Authentication, Mobile Authentication, otp, strong authentication, 2 step authentication, smartphone authentication, Multifactor authentication, multi factor authentication, multi factor, no password, passwordless login, security, website security, one time passcode, password, soft token, woocommerce, authenticate, two factor auth, two-factor, duo, QR Code, QR Code Authentication, scan QR Code, wordfence, login security, google authenticator, google , email verification, trusted device, device Id , KBA , knowledge based authentication
5
  Requires at least: 3.0.1
6
  Tested up to: 4.9.4
7
- Stable tag: 4.5.9
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -250,6 +250,9 @@ miniOrange authentication service has 15+ authentication methods.One time passco
250
 
251
  == Changelog ==
252
 
 
 
 
253
  = 4.5.9 =
254
  * Google Authenticator (2FA) : Bug fixes for customers who were getting redirected to the login page after the two factor authentication.
255
 
@@ -490,6 +493,9 @@ More descriptive setup messages and UI changes.
490
 
491
  == Upgrade Notice ==
492
 
 
 
 
493
  = 4.5.9 =
494
  * Google Authenticator (2FA) : Bug fixes for customers who were getting redirected to the login page after the two factor authentication.
495
 
4
  Tags: google authenticator, two factor authentication, two factor, 2FA, 2 factor authentication, two step verification, 1 google authenticator, login, authy, authy two factor, Clef, 2 Factor, yubico, Two-Factor Authentication, Mobile Authentication, otp, strong authentication, 2 step authentication, smartphone authentication, Multifactor authentication, multi factor authentication, multi factor, no password, passwordless login, security, website security, one time passcode, password, soft token, woocommerce, authenticate, two factor auth, two-factor, duo, QR Code, QR Code Authentication, scan QR Code, wordfence, login security, google authenticator, google , email verification, trusted device, device Id , KBA , knowledge based authentication
5
  Requires at least: 3.0.1
6
  Tested up to: 4.9.4
7
+ Stable tag: 4.6.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
250
 
251
  == Changelog ==
252
 
253
+ = 4.6.1 =
254
+ * Google Authenticator (2FA) : Login error fix. Please skip version 4.5.9 and update to version 4.6.1
255
+
256
  = 4.5.9 =
257
  * Google Authenticator (2FA) : Bug fixes for customers who were getting redirected to the login page after the two factor authentication.
258
 
493
 
494
  == Upgrade Notice ==
495
 
496
+ = 4.6.1 =
497
+ * Google Authenticator (2FA) : Login error fix. Please skip version 4.5.9 and update to version 4.6.1
498
+
499
  = 4.5.9 =
500
  * Google Authenticator (2FA) : Bug fixes for customers who were getting redirected to the login page after the two factor authentication.
501