Version Description
- Google Authenticator - Two factor Authentication (2FA, OTP) :
- Close button on offer banner
Download this release
Release Info
Developer | twofactorauthentication |
Plugin | Google Authenticator – WordPress Two Factor Authentication (2FA) |
Version | 5.4.48 |
Comparing to | |
See all releases |
Code changes from version 5.4.47 to 5.4.48
- handler/ajax.php +10 -0
- includes/css/style_settings.css +24 -1
- includes/js/settings_page.js +4 -0
- miniorange_2_factor_settings.php +2 -2
- readme.txt +9 -1
- uninstall.php +1 -0
- views/navbar.php +2 -2
handler/ajax.php
CHANGED
@@ -41,6 +41,10 @@ class AjaxHandler
|
|
41 |
case "plugin_warning_never_show_again":
|
42 |
$this->wpns_plugin_warning_never_show_again();
|
43 |
break;
|
|
|
|
|
|
|
|
|
44 |
|
45 |
case "dismissSms":
|
46 |
$this->wpns_sms_notice(); break;
|
@@ -138,6 +142,12 @@ class AjaxHandler
|
|
138 |
wp_send_json('success');
|
139 |
}
|
140 |
|
|
|
|
|
|
|
|
|
|
|
|
|
141 |
function wpns_dismiss_firewall_notice(){
|
142 |
update_site_option('waf_notification_option', 1);
|
143 |
update_site_option('notice_dismiss_time',time());
|
41 |
case "plugin_warning_never_show_again":
|
42 |
$this->wpns_plugin_warning_never_show_again();
|
43 |
break;
|
44 |
+
|
45 |
+
case "mo2f_banner_never_show_again":
|
46 |
+
$this->wpns_mo2f_banner_never_show_again();
|
47 |
+
break;
|
48 |
|
49 |
case "dismissSms":
|
50 |
$this->wpns_sms_notice(); break;
|
142 |
wp_send_json('success');
|
143 |
}
|
144 |
|
145 |
+
function wpns_mo2f_banner_never_show_again(){
|
146 |
+
update_site_option('mo2f_banner_never_show_again', 1);
|
147 |
+
wp_send_json('success');
|
148 |
+
}
|
149 |
+
|
150 |
+
|
151 |
function wpns_dismiss_firewall_notice(){
|
152 |
update_site_option('waf_notification_option', 1);
|
153 |
update_site_option('notice_dismiss_time',time());
|
includes/css/style_settings.css
CHANGED
@@ -4040,7 +4040,30 @@ clear: both;
|
|
4040 |
text-decoration: none;
|
4041 |
}
|
4042 |
|
4043 |
-
.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4044 |
{
|
4045 |
color: white;
|
4046 |
background: #ffffff7a;
|
4040 |
text-decoration: none;
|
4041 |
}
|
4042 |
|
4043 |
+
.mo2f_banner_never_show_again{
|
4044 |
+
color: white;
|
4045 |
+
|
4046 |
+
font-size: 15px;
|
4047 |
+
float: right;
|
4048 |
+
margin-top: -70px;
|
4049 |
+
margin-right: 10px;
|
4050 |
+
border:none;
|
4051 |
+
}
|
4052 |
+
|
4053 |
+
.mo2f_close
|
4054 |
+
{
|
4055 |
+
background:none;
|
4056 |
+
}
|
4057 |
+
|
4058 |
+
.mo2f_cross
|
4059 |
+
{
|
4060 |
+
background:#d69494;
|
4061 |
+
padding: 0px 4px;
|
4062 |
+
font-weight: bold;
|
4063 |
+
cursor: pointer;
|
4064 |
+
}
|
4065 |
+
|
4066 |
+
.mo2f_offer_contact_us:hover, .mo2f_cross:hover
|
4067 |
{
|
4068 |
color: white;
|
4069 |
background: #ffffff7a;
|
includes/js/settings_page.js
CHANGED
@@ -122,6 +122,10 @@ jQuery(document).ready(function () {
|
|
122 |
ajaxCall("plugin_warning_never_show_again",".plugin_warning_hide-notice",true);
|
123 |
});
|
124 |
|
|
|
|
|
|
|
|
|
125 |
$(".wpns_premium_option :input").attr("disabled",true);
|
126 |
|
127 |
$("#setuptwofa_redirect").click(function(e){
|
122 |
ajaxCall("plugin_warning_never_show_again",".plugin_warning_hide-notice",true);
|
123 |
});
|
124 |
|
125 |
+
$(".mo2f_banner_never_show_again").click(function(){
|
126 |
+
ajaxCall("mo2f_banner_never_show_again",".mo2f_offer_main_div",true);
|
127 |
+
});
|
128 |
+
|
129 |
$(".wpns_premium_option :input").attr("disabled",true);
|
130 |
|
131 |
$("#setuptwofa_redirect").click(function(e){
|
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'));
|
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.48
|
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.48' );
|
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: 5.8.2
|
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.47 =
|
408 |
* Google Authenticator - Two factor Authentication (2FA, OTP) :
|
409 |
* Christmas offer
|
@@ -1088,6 +1092,10 @@ More descriptive setup messages and UI changes.
|
|
1088 |
|
1089 |
== Upgrade Notice ==
|
1090 |
|
|
|
|
|
|
|
|
|
1091 |
= 5.4.47 =
|
1092 |
* Google Authenticator - Two factor Authentication (2FA, OTP) :
|
1093 |
* Christmas offer
|
6 |
Requires at least: 3.0.1
|
7 |
Tested up to: 5.8.2
|
8 |
Requires PHP: 5.3.0
|
9 |
+
Stable tag: 5.4.48
|
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.48 =
|
408 |
+
* Google Authenticator - Two factor Authentication (2FA, OTP) :
|
409 |
+
* Close button on offer banner
|
410 |
+
|
411 |
= 5.4.47 =
|
412 |
* Google Authenticator - Two factor Authentication (2FA, OTP) :
|
413 |
* Christmas offer
|
1092 |
|
1093 |
== Upgrade Notice ==
|
1094 |
|
1095 |
+
= 5.4.48 =
|
1096 |
+
* Google Authenticator - Two factor Authentication (2FA, OTP) :
|
1097 |
+
* Close button on offer banner
|
1098 |
+
|
1099 |
= 5.4.47 =
|
1100 |
* Google Authenticator - Two factor Authentication (2FA, OTP) :
|
1101 |
* Christmas offer
|
uninstall.php
CHANGED
@@ -28,6 +28,7 @@
|
|
28 |
delete_site_option('mo2f_mail_notify');
|
29 |
delete_site_option('mo2fa_free_plan_new_user_methods');
|
30 |
delete_site_option('mo2fa_free_plan_existing_user_methods');
|
|
|
31 |
delete_option('mo2fa_reconfiguration_via_email');
|
32 |
delete_option('mo2fa_userProfile_method');
|
33 |
delete_site_option('mo2f_feature_vers');
|
28 |
delete_site_option('mo2f_mail_notify');
|
29 |
delete_site_option('mo2fa_free_plan_new_user_methods');
|
30 |
delete_site_option('mo2fa_free_plan_existing_user_methods');
|
31 |
+
delete_site_option("mo2f_banner_never_show_again");
|
32 |
delete_option('mo2fa_reconfiguration_via_email');
|
33 |
delete_option('mo2fa_userProfile_method');
|
34 |
delete_site_option('mo2f_feature_vers');
|
views/navbar.php
CHANGED
@@ -36,7 +36,7 @@ if( isset( $_GET[ 'page' ]) && $_GET['page'] != 'mo_2fa_upgrade')
|
|
36 |
$date2 = date("Y-m-d");
|
37 |
$dateTimestamp2 = strtotime($date2);
|
38 |
|
39 |
-
if($dateTimestamp2<=$dateTimestamp1 && ($userID == $onprem_admin))
|
40 |
{
|
41 |
echo'<div class="mo2f_offer_main_div">
|
42 |
|
@@ -53,7 +53,7 @@ if( isset( $_GET[ 'page' ]) && $_GET['page'] != 'mo_2fa_upgrade')
|
|
53 |
<p class="mo2f_offer_valid">Offer valid for limited period only!</p>
|
54 |
</div>
|
55 |
|
56 |
-
<div id="mo2f_offer_last_section" class="mo2f_offer_last_section"><a class="mo2f_offer_contact_us" href="'.$request_offer_url.'">Contact Us</a></p></div>
|
57 |
|
58 |
</div><br><br>';
|
59 |
}
|
36 |
$date2 = date("Y-m-d");
|
37 |
$dateTimestamp2 = strtotime($date2);
|
38 |
|
39 |
+
if($dateTimestamp2<=$dateTimestamp1 && ($userID == $onprem_admin) && !get_site_option("mo2f_banner_never_show_again"))
|
40 |
{
|
41 |
echo'<div class="mo2f_offer_main_div">
|
42 |
|
53 |
<p class="mo2f_offer_valid">Offer valid for limited period only!</p>
|
54 |
</div>
|
55 |
|
56 |
+
<div id="mo2f_offer_last_section" class="mo2f_offer_last_section"><button class="mo2f_banner_never_show_again mo2f_close">CLOSE <span class=" mo2f_cross">X</span></button><a class="mo2f_offer_contact_us" href="'.$request_offer_url.'">Contact Us</a></p></div>
|
57 |
|
58 |
</div><br><br>';
|
59 |
}
|