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

Version Description

  • Google Authenticator - Two factor Authentication (2FA, OTP) :
  • Bug fix- Headers already sent
  • Added SMTP check for sending backup codes on 2fa prompt
Download this release

Release Info

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

Code changes from version 5.6.0 to 5.6.1

handler/twofa/two_fa_pass2login.php CHANGED
@@ -315,9 +315,14 @@ class Miniorange_Password_2Factor_Login {
315
  $mo2f_user_email = $currentuser->user_email;
316
  }
317
  $result = MO2f_Utility::mo2f_email_backup_codes($codes, $mo2f_user_email);
318
- update_user_meta($id, 'mo_backup_code_generated', 1);
319
-
320
- $mo2fa_login_message = "An email containing the backup codes has been sent. Please click on Use backup codes to login using the backup codes.";
 
 
 
 
 
321
  $mo2fa_login_status = sanitize_text_field($_POST['login_status']);
322
 
323
  $this->miniorange_pass2login_form_fields($mo2fa_login_status, $mo2fa_login_message, $redirect_to, null ,$session_id);
315
  $mo2f_user_email = $currentuser->user_email;
316
  }
317
  $result = MO2f_Utility::mo2f_email_backup_codes($codes, $mo2f_user_email);
318
+ if($result){
319
+ $mo2fa_login_message = "An email containing the backup codes has been sent. Please click on Use backup codes to login using the backup codes.";
320
+ update_user_meta($id, 'mo_backup_code_generated', 0);
321
+ }else{
322
+ $mo2fa_login_message = " If you haven\'t configured SMTP, please set your SMTP to get the backup codes on email.";
323
+ update_user_meta($id, 'mo_backup_code_generated', 1);
324
+ }
325
+
326
  $mo2fa_login_status = sanitize_text_field($_POST['login_status']);
327
 
328
  $this->miniorange_pass2login_form_fields($mo2fa_login_status, $mo2fa_login_message, $redirect_to, null ,$session_id);
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 TFA 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 3 User in the free version of the plugin.
6
- * Version: 5.6.0
7
  * Author: miniOrange
8
  * Author URI: https://miniorange.com
9
  * Text Domain: miniorange-2-factor-authentication
@@ -14,7 +14,7 @@
14
  require dirname(__FILE__).DIRECTORY_SEPARATOR.'views'.DIRECTORY_SEPARATOR.'email-IPaddress.php';
15
 
16
  define( 'MO_HOST_NAME', 'https://login.xecurify.com' );
17
- define( 'MO2F_VERSION', '5.6.0' );
18
  define( 'MO2F_PLUGIN_URL', (plugin_dir_url(__FILE__)));
19
  define( 'MO2F_TEST_MODE', false );
20
  define( 'MO2F_IS_ONPREM', get_option('is_onprem'));
3
  * Plugin Name: miniOrange 2 Factor Authentication
4
  * Plugin URI: https://miniorange.com
5
  * Description: This TFA 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 3 User in the free version of the plugin.
6
+ * Version: 5.6.1
7
  * Author: miniOrange
8
  * Author URI: https://miniorange.com
9
  * Text Domain: miniorange-2-factor-authentication
14
  require dirname(__FILE__).DIRECTORY_SEPARATOR.'views'.DIRECTORY_SEPARATOR.'email-IPaddress.php';
15
 
16
  define( 'MO_HOST_NAME', 'https://login.xecurify.com' );
17
+ define( 'MO2F_VERSION', '5.6.1' );
18
  define( 'MO2F_PLUGIN_URL', (plugin_dir_url(__FILE__)));
19
  define( 'MO2F_TEST_MODE', false );
20
  define( 'MO2F_IS_ONPREM', get_option('is_onprem'));
readme.txt CHANGED
@@ -6,7 +6,7 @@ Donate link: https://miniorange.com/
6
  Requires at least: 3.0.1
7
  Tested up to: 6.0.2
8
  Requires PHP: 5.3.0
9
- Stable tag: 5.6.0
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
@@ -18,8 +18,6 @@ Google Authenticator-multi Factor(WP 2FA / OTP) - Supports TOTP/OTP Login based
18
 
19
  USERS DON'T REQUIRE ACCESS TO THE WORDPRESS DASHBOARD TO SET UP 2FA making it extremely easy and secure to implement.
20
 
21
- To try out the 2fa features of our FREE plugin click [here](https://demo.tastewp.com/miniorange-2-factor-authentication).
22
-
23
  Check out following video to configure google authenticator as a 2fa:
24
 
25
  [youtube https://youtu.be/_nkMCkxLcIs]
@@ -221,6 +219,11 @@ You should go to <b>Setup Two-Factor (2FA) </b> Tab and click on <b>Reconfigure<
221
 
222
  == Changelog ==
223
 
 
 
 
 
 
224
  = 5.6.0 =
225
  * Google Authenticator - Two factor Authentication (2FA, OTP) :
226
  * Added new feature - the grace period for users
@@ -235,6 +238,11 @@ For older changelog entries, please see the [additional changelog.txt file](http
235
 
236
  == Upgrade Notice ==
237
 
 
 
 
 
 
238
  = 5.6.0 =
239
  * Google Authenticator - Two factor Authentication (2FA, OTP) :
240
  * Added new feature - the grace period for users
6
  Requires at least: 3.0.1
7
  Tested up to: 6.0.2
8
  Requires PHP: 5.3.0
9
+ Stable tag: 5.6.1
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
18
 
19
  USERS DON'T REQUIRE ACCESS TO THE WORDPRESS DASHBOARD TO SET UP 2FA making it extremely easy and secure to implement.
20
 
 
 
21
  Check out following video to configure google authenticator as a 2fa:
22
 
23
  [youtube https://youtu.be/_nkMCkxLcIs]
219
 
220
  == Changelog ==
221
 
222
+ = 5.6.1 =
223
+ * Google Authenticator - Two factor Authentication (2FA, OTP) :
224
+ * Bug fix- Headers already sent
225
+ * Added SMTP check for sending backup codes on 2fa prompt
226
+
227
  = 5.6.0 =
228
  * Google Authenticator - Two factor Authentication (2FA, OTP) :
229
  * Added new feature - the grace period for users
238
 
239
  == Upgrade Notice ==
240
 
241
+ = 5.6.1 =
242
+ * Google Authenticator - Two factor Authentication (2FA, OTP) :
243
+ * Bug fix- Headers already sent
244
+ * Added SMTP check for sending backup codes on 2fa prompt
245
+
246
  = 5.6.0 =
247
  * Google Authenticator - Two factor Authentication (2FA, OTP) :
248
  * Added new feature - the grace period for users