Version Description
- Google Authenticator - Two factor Authentication (2FA, OTP) :
- Trial notification visibility issue fixed
Download this release
Release Info
Developer | twofactorauthentication |
Plugin | Google Authenticator – WordPress Two Factor Authentication (2FA) |
Version | 5.4.51 |
Comparing to | |
See all releases |
Code changes from version 5.4.50 to 5.4.51
- controllers/trial.php +4 -4
- helper/messages.php +12 -8
- includes/css/style_settings.css +1 -1
- includes/js/settings_page.js +0 -6
- miniorange_2_factor_settings.php +6 -6
- readme.txt +10 -2
- uninstall.php +1 -1
- views/trial.php +0 -6
controllers/trial.php
CHANGED
@@ -25,9 +25,9 @@
|
|
25 |
$domain_url = isset($post['mo2f_trial_domain_name'])? $post['mo2f_trial_domain_name']: NULL;
|
26 |
$email = isset($post['mo2f_trial_email'])? $post['mo2f_trial_email'] : NULL;
|
27 |
$trial_plan = isset($post['mo2f_trial_plan'])? $post['mo2f_trial_plan']: NULL;
|
28 |
-
if(empty($
|
29 |
{
|
30 |
-
do_action('
|
31 |
return;
|
32 |
}
|
33 |
else{
|
@@ -37,8 +37,8 @@
|
|
37 |
$query = 'REQUEST FOR TRIAL';
|
38 |
$query .= ' [ Plan Name => ';
|
39 |
$query .= $trial_plan;
|
40 |
-
$query .= ' |
|
41 |
-
$query .=
|
42 |
$current_user = wp_get_current_user();
|
43 |
|
44 |
|
25 |
$domain_url = isset($post['mo2f_trial_domain_name'])? $post['mo2f_trial_domain_name']: NULL;
|
26 |
$email = isset($post['mo2f_trial_email'])? $post['mo2f_trial_email'] : NULL;
|
27 |
$trial_plan = isset($post['mo2f_trial_plan'])? $post['mo2f_trial_plan']: NULL;
|
28 |
+
if(empty($email) || empty($trial_plan))
|
29 |
{
|
30 |
+
do_action('wpns_show_message',MoWpnsMessages::showMessage('REQUIRED_FIELDS'),'ERROR');
|
31 |
return;
|
32 |
}
|
33 |
else{
|
37 |
$query = 'REQUEST FOR TRIAL';
|
38 |
$query .= ' [ Plan Name => ';
|
39 |
$query .= $trial_plan;
|
40 |
+
$query .= ' | Email => ';
|
41 |
+
$query .= get_option('mo2f_email').' ]';
|
42 |
$current_user = wp_get_current_user();
|
43 |
|
44 |
|
helper/messages.php
CHANGED
@@ -142,30 +142,34 @@
|
|
142 |
|
143 |
|
144 |
const FREE_TRIAL_MESSAGE_TRIAL_PAGE = "
|
145 |
-
<
|
|
|
146 |
<p>
|
147 |
<img style='width:15px;' src='".MO2F_PLUGIN_URL.'includes/images/miniorange_icon.png'."'>  Interested in the Trial of<b> 2 Factor Authentication Premium Plugins?</b> Click on the button below to get trial for <strong>7 days</strong>.
|
148 |
(<em>No credit card required</em>)
|
149 |
</p>
|
150 |
<p style='height:25px; padding: 10px;'>
|
151 |
<a class='button button-primary notice-button' href='admin.php?page=mo2f_trial' id='mo2f_trial_redirect'>Get Trial</a>
|
152 |
-
<
|
153 |
-
<button class='mo2f-trial-
|
154 |
</p>
|
155 |
-
</div>
|
|
|
156 |
|
157 |
const FREE_TRIAL_MESSAGE_ACCOUNT_PAGE = "
|
158 |
-
<
|
|
|
159 |
<p>
|
160 |
<img style='width:15px;' src='".MO2F_PLUGIN_URL.'includes/images/miniorange_icon.png'."'>  Interested in the Trial of<b> 2 Factor Authentication Premium Plugins?</b> Click on the button below to get trial for <strong>7 days</strong>.
|
161 |
(<em>No credit card required</em>)
|
162 |
</p>
|
163 |
<p style='height:25px; padding: 10px;'>
|
164 |
<a class='button button-primary notice-button' href='admin.php?page=mo_2fa_account' id='mo2f_trial_redirect'>Get Trial</a>
|
165 |
-
<
|
166 |
-
<button class='mo2f-trial-
|
167 |
</p>
|
168 |
-
</div>
|
|
|
169 |
|
170 |
|
171 |
|
142 |
|
143 |
|
144 |
const FREE_TRIAL_MESSAGE_TRIAL_PAGE = "
|
145 |
+
<form id='FREE_TRIAL_MESSAGE_TRIAL_PAGE' method='post' action=''>
|
146 |
+
<div class='notice notice-warning mo2f-notice-warning trial-notice MOWrn' id='mo2f_is-dismissible'>
|
147 |
<p>
|
148 |
<img style='width:15px;' src='".MO2F_PLUGIN_URL.'includes/images/miniorange_icon.png'."'>  Interested in the Trial of<b> 2 Factor Authentication Premium Plugins?</b> Click on the button below to get trial for <strong>7 days</strong>.
|
149 |
(<em>No credit card required</em>)
|
150 |
</p>
|
151 |
<p style='height:25px; padding: 10px;'>
|
152 |
<a class='button button-primary notice-button' href='admin.php?page=mo2f_trial' id='mo2f_trial_redirect'>Get Trial</a>
|
153 |
+
<input type='hidden' name='mo2f_dismiss_trial' value='mo2f_dismiss_trial'/>
|
154 |
+
<button type='submit' class='mo2f-trial-dismiss notice-button'><i>DISMISS</i></button>
|
155 |
</p>
|
156 |
+
</div>
|
157 |
+
</form>";
|
158 |
|
159 |
const FREE_TRIAL_MESSAGE_ACCOUNT_PAGE = "
|
160 |
+
<form id='FREE_TRIAL_MESSAGE_TRIAL_PAGE' method='post' action=''>
|
161 |
+
<div class='notice notice-warning mo2f-notice-warning trial-notice MOWrn'>
|
162 |
<p>
|
163 |
<img style='width:15px;' src='".MO2F_PLUGIN_URL.'includes/images/miniorange_icon.png'."'>  Interested in the Trial of<b> 2 Factor Authentication Premium Plugins?</b> Click on the button below to get trial for <strong>7 days</strong>.
|
164 |
(<em>No credit card required</em>)
|
165 |
</p>
|
166 |
<p style='height:25px; padding: 10px;'>
|
167 |
<a class='button button-primary notice-button' href='admin.php?page=mo_2fa_account' id='mo2f_trial_redirect'>Get Trial</a>
|
168 |
+
<input type='hidden' name='mo2f_dismiss_trial' value='mo2f_dismiss_trial'/>
|
169 |
+
<button type='submit' class='mo2f-trial-dismiss notice-button'><i>DISMISS</i></button>
|
170 |
</p>
|
171 |
+
</div>
|
172 |
+
</form>";
|
173 |
|
174 |
|
175 |
|
includes/css/style_settings.css
CHANGED
@@ -1165,7 +1165,7 @@ h2.mo_wpns_nav-tab-wrapper
|
|
1165 |
margin-left: 0px;
|
1166 |
padding: 5px 20px 30px 20px;
|
1167 |
background-color: #FFFFFF;
|
1168 |
-
border:
|
1169 |
float: left;
|
1170 |
width: 94%;
|
1171 |
overflow: hidden;
|
1165 |
margin-left: 0px;
|
1166 |
padding: 5px 20px 30px 20px;
|
1167 |
background-color: #FFFFFF;
|
1168 |
+
border: 2px solid #2271b1 !important;
|
1169 |
float: left;
|
1170 |
width: 94%;
|
1171 |
overflow: hidden;
|
includes/js/settings_page.js
CHANGED
@@ -101,13 +101,7 @@ jQuery(document).ready(function () {
|
|
101 |
ajaxCall("dismissplugin",".plugin_warning_hide-notice",true);
|
102 |
});
|
103 |
|
104 |
-
jQuery(".mo2f-trial-dismiss").click(function(){
|
105 |
-
ajaxCall("dismiss_trial",".trial-notice",true);
|
106 |
-
});
|
107 |
|
108 |
-
jQuery(".mo2f-trial-dismiss_always").click(function(){
|
109 |
-
ajaxCall("dismiss_trial_always",".trial-notice",true);
|
110 |
-
});
|
111 |
|
112 |
$(".dismiss_website_backup_notice").click(function(){
|
113 |
ajaxCall("dismissbackup",".plugin_warning_hide-notice",true);
|
101 |
ajaxCall("dismissplugin",".plugin_warning_hide-notice",true);
|
102 |
});
|
103 |
|
|
|
|
|
|
|
104 |
|
|
|
|
|
|
|
105 |
|
106 |
$(".dismiss_website_backup_notice").click(function(){
|
107 |
ajaxCall("dismissbackup",".plugin_warning_hide-notice",true);
|
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.4.
|
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.4.
|
18 |
define( 'MO2F_PLUGIN_URL', (plugin_dir_url(__FILE__)));
|
19 |
define( 'MO2F_TEST_MODE', false );
|
20 |
define( 'MO2F_IS_ONPREM', get_option('is_onprem'));
|
@@ -37,7 +37,6 @@
|
|
37 |
add_filter('manage_users_columns' , array( $this, 'mo2f_mapped_email_column' ) );
|
38 |
add_action('manage_users_custom_column' , array( $this, 'mo2f_mapped_email_column_content'), 10, 3 );
|
39 |
add_action('admin_notices' , array( $this, 'mo2f_notices' ) );
|
40 |
-
|
41 |
$actions = add_filter('user_row_actions' , array( $this, 'miniorange_reset_users' ),10 , 2 );
|
42 |
add_action( 'admin_footer' , array( $this, 'feedback_request' ) );
|
43 |
add_action('admin_notices',array( $this, 'mo_wpns_malware_notices' ) );
|
@@ -64,9 +63,8 @@
|
|
64 |
|
65 |
global $Mo2fdbQueries, $mo2f_db_queries;
|
66 |
$is_customer_registered = $Mo2fdbQueries->get_user_detail( 'user_registration_with_miniorange', wp_get_current_user()->ID ) == 'SUCCESS' ? true : false;
|
67 |
-
$
|
68 |
-
|
69 |
-
if(!get_site_option('mo2f_trial_query_sent') && $day_trial>1 && !get_site_option('mo2f_donot_show_trial_notice_always') && current_user_can('administrator')){
|
70 |
|
71 |
if(!$is_customer_registered)
|
72 |
echo MoWpnsMessages::showMessage('FREE_TRIAL_MESSAGE_ACCOUNT_PAGE');
|
@@ -628,6 +626,8 @@
|
|
628 |
}
|
629 |
}
|
630 |
}
|
|
|
|
|
631 |
}
|
632 |
|
633 |
function mo2f_mapped_email_column_content($value, $column_name, $user_id) {
|
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.4.51
|
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.4.51' );
|
18 |
define( 'MO2F_PLUGIN_URL', (plugin_dir_url(__FILE__)));
|
19 |
define( 'MO2F_TEST_MODE', false );
|
20 |
define( 'MO2F_IS_ONPREM', get_option('is_onprem'));
|
37 |
add_filter('manage_users_columns' , array( $this, 'mo2f_mapped_email_column' ) );
|
38 |
add_action('manage_users_custom_column' , array( $this, 'mo2f_mapped_email_column_content'), 10, 3 );
|
39 |
add_action('admin_notices' , array( $this, 'mo2f_notices' ) );
|
|
|
40 |
$actions = add_filter('user_row_actions' , array( $this, 'miniorange_reset_users' ),10 , 2 );
|
41 |
add_action( 'admin_footer' , array( $this, 'feedback_request' ) );
|
42 |
add_action('admin_notices',array( $this, 'mo_wpns_malware_notices' ) );
|
63 |
|
64 |
global $Mo2fdbQueries, $mo2f_db_queries;
|
65 |
$is_customer_registered = $Mo2fdbQueries->get_user_detail( 'user_registration_with_miniorange', wp_get_current_user()->ID ) == 'SUCCESS' ? true : false;
|
66 |
+
if(strpos($_SERVER['REQUEST_URI'], 'mo_2fa_upgrade'))
|
67 |
+
if(!get_site_option('mo2f_trial_query_sent') && !get_site_option('mo2f_donot_show_trial_notice_always') && current_user_can('administrator')){
|
|
|
68 |
|
69 |
if(!$is_customer_registered)
|
70 |
echo MoWpnsMessages::showMessage('FREE_TRIAL_MESSAGE_ACCOUNT_PAGE');
|
626 |
}
|
627 |
}
|
628 |
}
|
629 |
+
if(isset($_POST['mo2f_dismiss_trial']) && sanitize_text_field($_POST['mo2f_dismiss_trial'] == 'mo2f_dismiss_trial'))
|
630 |
+
update_site_option('mo2f_donot_show_trial_notice_always', 1);
|
631 |
}
|
632 |
|
633 |
function mo2f_mapped_email_column_content($value, $column_name, $user_id) {
|
readme.txt
CHANGED
@@ -4,9 +4,9 @@ Contributors: twofactor, twofactorauthentication, hsn97
|
|
4 |
Tags: google authenticator, two factor authentication, 2FA, OTP , two factor, 2-factor authentication, multi factor authentication , MFA ,two-step verification, wp 2fa, TFA, two-factor, mobile verification, TFA, MFA, 2 factor authentication, Remember Device, WordPress otp, Clef,SMS, email, TFA, signup security, two factor auth, Mobile Authentication, strong authentication, 2 step authentication, passwordless login, one time passcode, soft token Authentication, QR Code Authentication, email verification, KBA, Security Questions, login OTP, login with SMS, mobile login, phone login, OTP login, Knowledge based authentication, Authy, Authy two factor , Yubico, security, user security, Twilio WordPress, SMS gateway, Solutions Infini, FIDO, FIDO2, FIDO 2, Webauthn, Usernameless login ,Clickatell, BulkSMS, MSG91, Nexmo, SMS Country, message, woocommerce, website security, login security, multi factor, wordfence, IP Blocking, IP Whitelisting, login Audits, woocommerce, SMS login, passwordless login, auth, Two step verification, login with OTP WordPress , OTP tfaOver SMS and Email, two-step authentication, login without password, secure login, temporary login, temporary access, multi-factor authentication, woocommerce, smartphone, register with OTP, user OTP verification, SMS OTP, OTP Email, registration with OTP verification, registration verification, smartphone authentication, Login with fingerprint, faceID, touchID, session restriction, device restriction, password free authentication, Duo Authenticator, LastPass authenticator
|
5 |
Donate link: https://miniorange.com/
|
6 |
Requires at least: 3.0.1
|
7 |
-
Tested up to: 5.
|
8 |
Requires PHP: 5.3.0
|
9 |
-
Stable tag: 5.4.
|
10 |
License: GPLv2 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
|
@@ -404,6 +404,10 @@ miniOrange authentication service has 15+ authentication methods. One time passc
|
|
404 |
|
405 |
== Changelog ==
|
406 |
|
|
|
|
|
|
|
|
|
407 |
= 5.4.50 =
|
408 |
* Google Authenticator - Two factor Authentication (2FA, OTP) :
|
409 |
* Bug fix - Headers already sent
|
@@ -1101,6 +1105,10 @@ More descriptive setup messages and UI changes.
|
|
1101 |
|
1102 |
== Upgrade Notice ==
|
1103 |
|
|
|
|
|
|
|
|
|
1104 |
= 5.4.50 =
|
1105 |
* Google Authenticator - Two factor Authentication (2FA, OTP) :
|
1106 |
* Bug fix - Headers already sent
|
4 |
Tags: google authenticator, two factor authentication, 2FA, OTP , two factor, 2-factor authentication, multi factor authentication , MFA ,two-step verification, wp 2fa, TFA, two-factor, mobile verification, TFA, MFA, 2 factor authentication, Remember Device, WordPress otp, Clef,SMS, email, TFA, signup security, two factor auth, Mobile Authentication, strong authentication, 2 step authentication, passwordless login, one time passcode, soft token Authentication, QR Code Authentication, email verification, KBA, Security Questions, login OTP, login with SMS, mobile login, phone login, OTP login, Knowledge based authentication, Authy, Authy two factor , Yubico, security, user security, Twilio WordPress, SMS gateway, Solutions Infini, FIDO, FIDO2, FIDO 2, Webauthn, Usernameless login ,Clickatell, BulkSMS, MSG91, Nexmo, SMS Country, message, woocommerce, website security, login security, multi factor, wordfence, IP Blocking, IP Whitelisting, login Audits, woocommerce, SMS login, passwordless login, auth, Two step verification, login with OTP WordPress , OTP tfaOver SMS and Email, two-step authentication, login without password, secure login, temporary login, temporary access, multi-factor authentication, woocommerce, smartphone, register with OTP, user OTP verification, SMS OTP, OTP Email, registration with OTP verification, registration verification, smartphone authentication, Login with fingerprint, faceID, touchID, session restriction, device restriction, password free authentication, Duo Authenticator, LastPass authenticator
|
5 |
Donate link: https://miniorange.com/
|
6 |
Requires at least: 3.0.1
|
7 |
+
Tested up to: 5.9
|
8 |
Requires PHP: 5.3.0
|
9 |
+
Stable tag: 5.4.51
|
10 |
License: GPLv2 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
|
404 |
|
405 |
== Changelog ==
|
406 |
|
407 |
+
= 5.4.51 =
|
408 |
+
* Google Authenticator - Two factor Authentication (2FA, OTP) :
|
409 |
+
* Trial notification visibility issue fixed
|
410 |
+
|
411 |
= 5.4.50 =
|
412 |
* Google Authenticator - Two factor Authentication (2FA, OTP) :
|
413 |
* Bug fix - Headers already sent
|
1105 |
|
1106 |
== Upgrade Notice ==
|
1107 |
|
1108 |
+
= 5.4.51 =
|
1109 |
+
* Google Authenticator - Two factor Authentication (2FA, OTP) :
|
1110 |
+
* Trial notification visibility issue fixed
|
1111 |
+
|
1112 |
= 5.4.50 =
|
1113 |
* Google Authenticator - Two factor Authentication (2FA, OTP) :
|
1114 |
* Bug fix - Headers already sent
|
uninstall.php
CHANGED
@@ -9,7 +9,7 @@
|
|
9 |
}
|
10 |
update_option('mo2f_activate_plugin', 1);
|
11 |
|
12 |
-
delete_option('
|
13 |
delete_option('mo2f_donot_show_trial_notice_always');
|
14 |
|
15 |
|
9 |
}
|
10 |
update_option('mo2f_activate_plugin', 1);
|
11 |
|
12 |
+
delete_option('mo2f_trial_dismiss');
|
13 |
delete_option('mo2f_donot_show_trial_notice_always');
|
14 |
|
15 |
|
views/trial.php
CHANGED
@@ -12,12 +12,6 @@
|
|
12 |
<input type="hidden" name="option" value="mo2f_trial_request_form" />
|
13 |
<input type="hidden" name="nonce" value="<?php echo wp_create_nonce('mo2f_trial-nonce')?>">
|
14 |
<table cellpadding="4" cellspacing="4">
|
15 |
-
<tr>
|
16 |
-
<td><strong>Your Domain : </strong></td>
|
17 |
-
<td>
|
18 |
-
<input type="text" minlength="3" name="mo2f_trial_domain_name" style="width: 100%;" value="<?php echo $url;?>" placeholder="e.g. https://www.miniorange.com/" style="width: 340px;" required value=""></textarea>
|
19 |
-
</td>
|
20 |
-
</tr>
|
21 |
<tr>
|
22 |
<td><strong>Email ID : </strong></td>
|
23 |
<td><input required type="email" name="mo2f_trial_email" style="width: 100%;" value="<?php echo $email;?>" placeholder="Email id" value="" /></td>
|
12 |
<input type="hidden" name="option" value="mo2f_trial_request_form" />
|
13 |
<input type="hidden" name="nonce" value="<?php echo wp_create_nonce('mo2f_trial-nonce')?>">
|
14 |
<table cellpadding="4" cellspacing="4">
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
<tr>
|
16 |
<td><strong>Email ID : </strong></td>
|
17 |
<td><input required type="email" name="mo2f_trial_email" style="width: 100%;" value="<?php echo $email;?>" placeholder="Email id" value="" /></td>
|