Version Description
- Google Authenticator-Two Factor Authentication (2FA) : UI Fixes.
Download this release
Release Info
Developer | cyberlord92 |
Plugin | Google Authenticator – WordPress Two Factor Authentication (2FA) |
Version | 5.1.22 |
Comparing to | |
See all releases |
Code changes from version 5.1.21 to 5.1.22
- class-customer-setup.php +2 -2
- includes/css/mo2f_plugins_page.css +1 -1
- includes/css/phone.css +1 -1
- includes/css/style_settings.css +43 -13
- miniorange_2_factor_common_login.php +4 -1
- miniorange_2_factor_configuration.php +80 -56
- miniorange_2_factor_mobile_configuration.php +87 -59
- miniorange_2_factor_settings.php +13 -14
- miniorange_2_factor_support.php +57 -56
- network_security/views/miniorange_network_security_brute_force.php +1 -1
- readme.txt +7 -1
- views/feedback_form.php +1 -1
class-customer-setup.php
CHANGED
@@ -115,7 +115,7 @@ class Customer_Setup {
|
|
115 |
$customer_feature = "V3";
|
116 |
}
|
117 |
|
118 |
-
$query = '[WordPress 2 Factor Authentication Plugin: ' . $customer_feature . ' - V
|
119 |
|
120 |
$content = '<div >First Name :' . $user->user_firstname . '<br><br>Last Name :' . $user->user_lastname . ' <br><br>Company :<a href="' . $_SERVER['SERVER_NAME'] . '" target="_blank" >' . $_SERVER['SERVER_NAME'] . '</a><br><br>Phone Number :' . $phone . '<br><br>Email :<a href="mailto:' . $fromEmail . '" target="_blank">' . $fromEmail . '</a><br><br>Query :' . $query . '</div>';
|
121 |
|
@@ -613,7 +613,7 @@ class Customer_Setup {
|
|
613 |
$customer_feature = "V3";
|
614 |
}
|
615 |
|
616 |
-
$query = '[WordPress 2 Factor Authentication Plugin: ' . $customer_feature . ' - V
|
617 |
$fields = array(
|
618 |
'firstName' => $user->user_firstname,
|
619 |
'lastName' => $user->user_lastname,
|
115 |
$customer_feature = "V3";
|
116 |
}
|
117 |
|
118 |
+
$query = '[WordPress 2 Factor Authentication Plugin: ' . $customer_feature . ' - V '.MO2F_VERSION.']: ' . $message;
|
119 |
|
120 |
$content = '<div >First Name :' . $user->user_firstname . '<br><br>Last Name :' . $user->user_lastname . ' <br><br>Company :<a href="' . $_SERVER['SERVER_NAME'] . '" target="_blank" >' . $_SERVER['SERVER_NAME'] . '</a><br><br>Phone Number :' . $phone . '<br><br>Email :<a href="mailto:' . $fromEmail . '" target="_blank">' . $fromEmail . '</a><br><br>Query :' . $query . '</div>';
|
121 |
|
613 |
$customer_feature = "V3";
|
614 |
}
|
615 |
|
616 |
+
$query = '[WordPress 2 Factor Authentication Plugin: ' . $customer_feature . ' - V '.MO2F_VERSION.']: ' . $query;
|
617 |
$fields = array(
|
618 |
'firstName' => $user->user_firstname,
|
619 |
'lastName' => $user->user_lastname,
|
includes/css/mo2f_plugins_page.css
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
.mo2f_modal {
|
2 |
display: none;
|
3 |
position: fixed;
|
4 |
-
z-index:
|
5 |
padding-top: 100px;
|
6 |
left: 100px;
|
7 |
top: 0;
|
1 |
.mo2f_modal {
|
2 |
display: none;
|
3 |
position: fixed;
|
4 |
+
z-index: 9999;
|
5 |
padding-top: 100px;
|
6 |
left: 100px;
|
7 |
top: 0;
|
includes/css/phone.css
CHANGED
@@ -35,7 +35,7 @@
|
|
35 |
list-style: none;
|
36 |
padding: 0;
|
37 |
margin: 0;
|
38 |
-
z-index:
|
39 |
overflow-y: scroll;
|
40 |
box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
|
41 |
background-color: white;
|
35 |
list-style: none;
|
36 |
padding: 0;
|
37 |
margin: 0;
|
38 |
+
z-index: 9999;
|
39 |
overflow-y: scroll;
|
40 |
box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
|
41 |
background-color: white;
|
includes/css/style_settings.css
CHANGED
@@ -304,7 +304,6 @@ a {
|
|
304 |
|
305 |
.mo2f_2factor_heading_images {
|
306 |
display: inline-block;
|
307 |
-
padding: 15px;
|
308 |
width: 20px;
|
309 |
height: 20px;
|
310 |
float: left
|
@@ -436,7 +435,7 @@ a {
|
|
436 |
background-color: #f9f9f9;
|
437 |
min-width: 160px;
|
438 |
box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
|
439 |
-
z-index:
|
440 |
}
|
441 |
|
442 |
.dropdown-content a {
|
@@ -657,7 +656,7 @@ a {
|
|
657 |
.mo2f_vertical-submenu {
|
658 |
margin: 0;
|
659 |
padding: 0;
|
660 |
-
width:
|
661 |
border-spacing: auto;
|
662 |
|
663 |
}
|
@@ -1056,16 +1055,18 @@ a {
|
|
1056 |
.mo2f_setup_2factor_tab {
|
1057 |
align-content: center;
|
1058 |
width: 107%;
|
1059 |
-
min-height:
|
1060 |
padding:5px;
|
1061 |
}
|
1062 |
|
1063 |
.mo2f_2factor_heading_images {
|
1064 |
display: inline-block;
|
1065 |
-
padding: 15px;
|
1066 |
width: 20px;
|
1067 |
height: 20px;
|
1068 |
-
float: left
|
|
|
|
|
|
|
1069 |
}
|
1070 |
|
1071 |
.mo2f_advanced_options_images {
|
@@ -1389,8 +1390,7 @@ a {
|
|
1389 |
padding: 30px;
|
1390 |
align-content: center;
|
1391 |
border:0px;
|
1392 |
-
|
1393 |
-
|
1394 |
}
|
1395 |
|
1396 |
.mo2f_setup_2_factor_tab {
|
@@ -1424,8 +1424,9 @@ a {
|
|
1424 |
.mo2f_vertical-submenu {
|
1425 |
margin: 0;
|
1426 |
padding: 0;
|
1427 |
-
width:
|
1428 |
border-spacing: auto;
|
|
|
1429 |
|
1430 |
}
|
1431 |
|
@@ -1605,7 +1606,7 @@ body {font-family: "Lato", sans-serif;}
|
|
1605 |
background-color: #23282D;
|
1606 |
width: 15%;
|
1607 |
height: 350px;
|
1608 |
-
box-shadow: -1px 0px
|
1609 |
}
|
1610 |
|
1611 |
/* Style the buttons inside the tab */
|
@@ -1675,7 +1676,7 @@ body {font-family: "Lato", sans-serif;}
|
|
1675 |
border: 1px solid #ccc;
|
1676 |
width: 85%;
|
1677 |
border-left: none;
|
1678 |
-
min-height:
|
1679 |
background-color: #fff;
|
1680 |
}
|
1681 |
|
@@ -1744,7 +1745,36 @@ body {font-family: "Lato", sans-serif;}
|
|
1744 |
|
1745 |
.mo2f_fixed_support{
|
1746 |
position:fixed;
|
1747 |
-
top:
|
1748 |
-
left:
|
1749 |
z-index: 1;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1750 |
}
|
304 |
|
305 |
.mo2f_2factor_heading_images {
|
306 |
display: inline-block;
|
|
|
307 |
width: 20px;
|
308 |
height: 20px;
|
309 |
float: left
|
435 |
background-color: #f9f9f9;
|
436 |
min-width: 160px;
|
437 |
box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
|
438 |
+
z-index: 9999;
|
439 |
}
|
440 |
|
441 |
.dropdown-content a {
|
656 |
.mo2f_vertical-submenu {
|
657 |
margin: 0;
|
658 |
padding: 0;
|
659 |
+
width: 117%;
|
660 |
border-spacing: auto;
|
661 |
|
662 |
}
|
1055 |
.mo2f_setup_2factor_tab {
|
1056 |
align-content: center;
|
1057 |
width: 107%;
|
1058 |
+
min-height: 394px;
|
1059 |
padding:5px;
|
1060 |
}
|
1061 |
|
1062 |
.mo2f_2factor_heading_images {
|
1063 |
display: inline-block;
|
|
|
1064 |
width: 20px;
|
1065 |
height: 20px;
|
1066 |
+
float: left;
|
1067 |
+
margin-right:1%;
|
1068 |
+
margin-top: 1.5%;
|
1069 |
+
margin-left: 1.5%;
|
1070 |
}
|
1071 |
|
1072 |
.mo2f_advanced_options_images {
|
1390 |
padding: 30px;
|
1391 |
align-content: center;
|
1392 |
border:0px;
|
1393 |
+
|
|
|
1394 |
}
|
1395 |
|
1396 |
.mo2f_setup_2_factor_tab {
|
1424 |
.mo2f_vertical-submenu {
|
1425 |
margin: 0;
|
1426 |
padding: 0;
|
1427 |
+
width: 117%;
|
1428 |
border-spacing: auto;
|
1429 |
+
cursor: pointer;
|
1430 |
|
1431 |
}
|
1432 |
|
1606 |
background-color: #23282D;
|
1607 |
width: 15%;
|
1608 |
height: 350px;
|
1609 |
+
box-shadow: -1px 0px 3px #777777;
|
1610 |
}
|
1611 |
|
1612 |
/* Style the buttons inside the tab */
|
1676 |
border: 1px solid #ccc;
|
1677 |
width: 85%;
|
1678 |
border-left: none;
|
1679 |
+
min-height: 390px;
|
1680 |
background-color: #fff;
|
1681 |
}
|
1682 |
|
1745 |
|
1746 |
.mo2f_fixed_support{
|
1747 |
position:fixed;
|
1748 |
+
top: 9%;
|
1749 |
+
left: 81%;
|
1750 |
z-index: 1;
|
1751 |
+
float:right;
|
1752 |
+
background-color:#ffba00;
|
1753 |
+
color:black;
|
1754 |
+
width:16%;
|
1755 |
+
font-size: 17px;
|
1756 |
+
}
|
1757 |
+
|
1758 |
+
.need-help-button {
|
1759 |
+
|
1760 |
+
padding: 4px 8px;
|
1761 |
+
float:right;
|
1762 |
+
background-color:#62b772;
|
1763 |
+
color:#fff;
|
1764 |
+
width:15%;
|
1765 |
+
border: 1px solid #018219;
|
1766 |
+
border-radius: 4px;
|
1767 |
+
text-shadow: none;
|
1768 |
+
font-weight: 600;
|
1769 |
+
font-size: 13px;
|
1770 |
+
line-height: normal;
|
1771 |
+
cursor: pointer;
|
1772 |
+
position:fixed;
|
1773 |
+
left: 83.5%;
|
1774 |
+
z-index: 9999;
|
1775 |
+
height:34px;
|
1776 |
+
}
|
1777 |
+
|
1778 |
+
.mo2f_orange{
|
1779 |
+
background:orange;
|
1780 |
}
|
miniorange_2_factor_common_login.php
CHANGED
@@ -686,6 +686,9 @@ function mo2f_get_otp_authentication_prompt( $login_status, $login_message, $red
|
|
686 |
<?php } ?><br><?php
|
687 |
if(get_option( 'mo2f_enable_brute_force' )){?>
|
688 |
<span><b>Attempts left</b>:</span> <?php echo $attempts;?><br>
|
|
|
|
|
|
|
689 |
<br>
|
690 |
<?php }?>
|
691 |
<div id="showOTP">
|
@@ -868,4 +871,4 @@ function echo_js_css_files() {
|
|
868 |
}
|
869 |
|
870 |
|
871 |
-
?>
|
686 |
<?php } ?><br><?php
|
687 |
if(get_option( 'mo2f_enable_brute_force' )){?>
|
688 |
<span><b>Attempts left</b>:</span> <?php echo $attempts;?><br>
|
689 |
+
<?php if($attempts==1){?>
|
690 |
+
<span style='color:red;'><b>If you fail to verify your identity, you will be redirected back to login page to verify your credentials.</b></span> <br>
|
691 |
+
<?php }?>
|
692 |
<br>
|
693 |
<?php }?>
|
694 |
<div id="showOTP">
|
871 |
}
|
872 |
|
873 |
|
874 |
+
?>
|
miniorange_2_factor_configuration.php
CHANGED
@@ -31,88 +31,110 @@ function mo_2_factor_register( $user ) {
|
|
31 |
|
32 |
$mo2fa_tab='mo2f_ns';
|
33 |
|
34 |
-
if($mo2f_active_tab=="mobile_configure"||$mo2f_active_tab=="mo2f_support"||$mo2f_active_tab=="mo2f_addon"||$mo2f_active_tab=="2factor_setup"|| $mo2f_active_tab=="mo2f_login"||$mo2f_active_tab=="proxy_setup"){
|
35 |
$mo2fa_tab='2fa';
|
36 |
}
|
37 |
$session_variables = array( 'mo2f_google_auth', 'mo2f_authy_keys', 'mo2f_mobile_support' );
|
38 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
?>
|
40 |
-
|
|
|
41 |
<div style="display:block;font-size:23px;line-height:29px;">
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
|
|
|
|
|
|
48 |
|
49 |
-
<?php } ?>
|
50 |
-
|
51 |
</div>
|
52 |
-
|
53 |
</div>
|
54 |
<div id="messages"></div>
|
55 |
<?php echo mo2f_fixed_support();?>
|
56 |
-
|
57 |
-
|
58 |
-
font-size: 17px;" onclick="mo2f_opensupport()" ><?php echo mo2f_lt( 'NEED HELP?' ); ?></span>
|
59 |
-
</button>
|
60 |
-
</div>
|
61 |
-
<?php
|
62 |
-
if ( $can_display_admin_features && $mo2f_active_tab == 'mo2f_pricing' ) {
|
63 |
-
MO2f_Utility::unset_session_variables( $session_variables );
|
64 |
-
show_2_factor_pricing_page( $user );
|
65 |
-
exit;
|
66 |
-
}
|
67 |
-
?>
|
68 |
<div class="mo2f_container">
|
69 |
<div style="display: inline-flex; width: 100%;">
|
|
|
70 |
<div class="tab" style="height:54px;margin-top: 9px;border-bottom: 0px;text-align:center;border-radius: 15px 0px 0px 0px;width: 15%;">
|
71 |
<div><img style="float:left;margin-left:8px;width: 43px;height: 45px;padding-top: 5px;" src="<?php echo plugins_url( 'includes/images/logo.png"', __FILE__ ); ?>"></div>
|
72 |
<br>
|
73 |
<span style="font-size:20px;color:white;float:left;">miniOrange</span>
|
74 |
</div>
|
|
|
75 |
<div id="tab" class="nav-tab-wrapper" style="border: 0px;width: 85%;">
|
76 |
<div class="" style="display: inline-flex;width: 100%;">
|
77 |
-
|
|
|
78 |
<?php if ( $can_display_admin_features ) { ?>
|
79 |
|
80 |
<a href="admin.php?page=miniOrange_2_factor_settings&mo2f_tab=mo2f_network&mo2f_sub_tab=mo2f_limit"
|
81 |
style="text-align: center;height:54px;width:50%;margin: 0;line-height: 3;" class="nav-tab <?php echo $mo2f_active_tab == 'mo2f_network' ? 'nav-tab-active' : ''; ?>"
|
82 |
-
id="mo2f_tab4"><?php echo mo2f_lt( '
|
|
|
|
|
|
|
83 |
</div>
|
84 |
</div>
|
85 |
</div>
|
86 |
<div >
|
87 |
-
|
|
|
88 |
<span class="tooltiptext"></span>
|
89 |
-
<?php if ( $mo2fa_tab=='2fa') {?>
|
90 |
<a href="admin.php?page=miniOrange_2_factor_settings&mo2f_tab=mobile_configure" class="tablinks <?php echo $mo2f_active_tab == 'mobile_configure' ? 'active' : ''; ?>" id="mo2f_tab3"><?php echo mo2f_lt( 'Setup Two-Factor' ); ?></a>
|
91 |
<?php if ( $can_display_admin_features ) { ?>
|
92 |
<?php if ( get_option( 'mo2f_is_NC' ) ) { ?>
|
93 |
<a href="admin.php?page=miniOrange_2_factor_settings&mo2f_tab=mo2f_addon&mo2f_sub_tab=mo2f_sub_tab_rba" class="tablinks <?php echo $mo2f_active_tab == 'mo2f_addon' ? 'active' : ''; ?>" id="mo2f_tab4"><?php echo mo2f_lt( 'Add-ons' ); ?></a><?php }
|
94 |
-
if( ! get_option('mo2f_is_NC') ) {
|
|
|
95 |
class="tablinks <?php echo $mo2f_active_tab == 'mo2f_login' ? 'active' : ''; ?>"
|
96 |
id="mo2f_tab2"><?php echo mo2f_lt( 'Login Options' ); ?></a>
|
97 |
<?php } ?>
|
98 |
<a href="admin.php?page=miniOrange_2_factor_settings&mo2f_tab=mo2f_support"
|
99 |
class="tablinks <?php echo $mo2f_active_tab == 'mo2f_support' ? ' active' : ''; ?>"
|
100 |
id="mo2f_tab7"><?php echo mo2f_lt( 'Support' ) ; ?></a>
|
101 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
102 |
<?php }//mo2f_network
|
103 |
-
} else{ ?>
|
104 |
-
<a href="admin.php?page=miniOrange_2_factor_settings&mo2f_tab=mo2f_network&mo2f_sub_tab=mo2f_limit" class="tablinks <?php echo $mo2f_sub_active_tab == 'mo2f_limit' ? ' active' : ''; ?>" id="mo2f_tab7"><?php echo mo2f_lt( '
|
105 |
|
106 |
-
<a href="admin.php?page=miniOrange_2_factor_settings&mo2f_tab=mo2f_network&mo2f_sub_tab=show_2_factor_ip_block" class="tablinks <?php echo $mo2f_sub_active_tab == 'show_2_factor_ip_block' ? 'active' : ''; ?>" id="mo2f_tab4"><?php echo mo2f_lt( 'Blocking' ); ?></a>
|
107 |
<a href="admin.php?page=miniOrange_2_factor_settings&mo2f_tab=mo2f_network&mo2f_sub_tab=mo2f_monitor" class="tablinks <?php echo $mo2f_sub_active_tab == 'mo2f_monitor' ? 'active' : ''; ?>" id="mo2f_tab3"><?php echo mo2f_lt( 'Monitoring' ); ?></a>
|
108 |
-
|
|
|
|
|
|
|
|
|
|
|
109 |
<?php
|
110 |
} ?>
|
111 |
</div>
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
<td style="width:70%;vertical-align:top;">
|
116 |
<?php
|
117 |
/* to update the status of existing customers for adding their user registration status */
|
118 |
if ( get_option( 'mo_2factor_admin_registration_status' ) == 'MO_2_FACTOR_CUSTOMER_REGISTERED_SUCCESS' && get_option( 'mo2f_miniorange_admin' ) == $user->ID ) {
|
@@ -121,8 +143,9 @@ function mo_2_factor_register( $user ) {
|
|
121 |
/* ----------------------------------------- */
|
122 |
$session_variables = array( 'mo2f_google_auth', 'mo2f_authy_keys', 'mo2f_mobile_support' );
|
123 |
if ( $mo2f_active_tab == 'mobile_configure' ) {
|
124 |
-
$mo2f_second_factor = mo2f_get_activated_second_factor( $user );
|
125 |
mo2f_select_2_factor_method( $user, $mo2f_second_factor );
|
|
|
|
|
126 |
} else if ( $can_display_admin_features && $mo2f_sub_active_tab == 'mo2f_limit' ) {
|
127 |
MO2f_Utility::unset_session_variables( $session_variables );
|
128 |
do_action('mo2f_network_view_brute_force',$user);
|
@@ -191,9 +214,7 @@ function mo_2_factor_register( $user ) {
|
|
191 |
}
|
192 |
}
|
193 |
?>
|
194 |
-
|
195 |
-
</tr>
|
196 |
-
</table>
|
197 |
</div>
|
198 |
</div>
|
199 |
</div>
|
@@ -224,9 +245,9 @@ function mo_2_factor_register( $user ) {
|
|
224 |
<div class="mo2f_support_layout" id="mo2f_support_layout" hidden>
|
225 |
|
226 |
<h3><?php echo mo2f_lt( 'Support' ); ?>
|
227 |
-
<a id="
|
228 |
target="_blank" style="float:right"><?php echo mo2f_lt( 'Ask questions on the WP Forum' ); ?></a>
|
229 |
-
<a id="
|
230 |
target="_blank" style="float:right"><?php echo mo2f_lt( 'FAQ' ); ?></a>
|
231 |
</h3>
|
232 |
<hr width="100%">
|
@@ -252,7 +273,7 @@ function mo_2_factor_register( $user ) {
|
|
252 |
<tr>
|
253 |
<td>
|
254 |
<input type="text" class="mo2f_table_textbox" style="width:100% !important;"
|
255 |
-
name="
|
256 |
value="<?php echo $user_phone; ?>"
|
257 |
placeholder="Enter your phone"/>
|
258 |
</td>
|
@@ -283,7 +304,7 @@ function mo_2_factor_register( $user ) {
|
|
283 |
<br>
|
284 |
</div>
|
285 |
<script>
|
286 |
-
jQuery("#
|
287 |
var mo2f_backdrop = document.getElementById('mo2f_backdrop');
|
288 |
// hide if clicked in
|
289 |
window.onclick = function (event) {
|
@@ -324,7 +345,8 @@ function show_2_factor_enforce_password() {
|
|
324 |
function mo2f_show_registration_page( $user ) {
|
325 |
global $Mo2fdbQueries;
|
326 |
$mo2f_active_tab = isset( $_GET['mo2f_tab'] ) ? $_GET['mo2f_tab'] : '';
|
327 |
-
$
|
|
|
328 |
?>
|
329 |
<!--Register with miniOrange-->
|
330 |
<form name="f" method="post" action="">
|
@@ -464,7 +486,7 @@ function mo2f_rba_description($mo2f_user_email) {?>
|
|
464 |
<?php if ( ! get_option( 'mo2f_rba_purchased' ) ) { ?>
|
465 |
<a onclick="mo2f_addonform('wp_2fa_addon_rba')" id="mo2f_purchase_rba_addon"
|
466 |
class="button button-primary button-large"
|
467 |
-
style="
|
468 |
<div id="mo2f_rba_addon_hide"><h3 id="toggle_rba_description"
|
469 |
class="mo2f_pointer"><?php echo __( 'Description', 'miniorange-2-factor-authentication' ); ?> </h3>
|
470 |
<p id="rba_description" style="margin:2% 2% 2% 4%">
|
@@ -529,10 +551,10 @@ function show_2_factor_addons( $current_user ) {
|
|
529 |
$mo2f_active_sub_sub_tab = isset( $_GET['mo2f_sub_sub_tab'] ) ? $_GET['mo2f_sub_sub_tab'] : 'rba'; ?>
|
530 |
<div class="mo2f_table_layout" style="border:0px;width: 80%;">
|
531 |
<?php //echo mo2f_check_if_registered_with_miniorange( $current_user ); ?>
|
532 |
-
<div class="mo2f_vertical-submenu" style="text-align:justify;
|
533 |
<a id="defaultOpen" class="nav-tab" onclick="openPage('rba', this, '#4CAF50')"
|
534 |
-
><?php echo __( '
|
535 |
-
<a id="onclickOpen" class="nav-tab" onclick="openPage('personal', this, '#4CAF50')" ><?php echo __( '
|
536 |
<a id="onclick" class="nav-tab" onclick="openPage('shortcode', this, '#4CAF50')" ><?php echo __( 'Shortcode', 'miniorange-2-factor-authentication' ); ?></a>
|
537 |
</div>
|
538 |
<br><br><br><br>
|
@@ -593,7 +615,7 @@ function mo2f_personalization_description($mo2f_user_email) {?>
|
|
593 |
<?php if ( ! get_option( 'mo2f_personalization_purchased' ) ) { ?> <a
|
594 |
onclick="mo2f_addonform('wp_2fa_addon_shortcode')" id="mo2f_purchase_custom_addon"
|
595 |
class="button button-primary button-large"
|
596 |
-
style="
|
597 |
<?php } ?>
|
598 |
<div id="mo2f_custom_addon_hide">
|
599 |
<h3 id="toggle_personalization_description" class="mo2f_pointer">
|
@@ -653,7 +675,7 @@ function mo2f_shortcode_description($mo2f_user_email) {
|
|
653 |
<?php } if ( ! get_option( 'mo2f_shortcode_purchased' ) ) { ?>
|
654 |
<a onclick="mo2f_addonform('wp_2fa_addon_personalization')" id="mo2f_purchase_shortcode_addon"
|
655 |
class="button button-primary button-large"
|
656 |
-
style="
|
657 |
<?php } ?>
|
658 |
<h3 id="toggle_shortcode_description" class="mo2f_pointer">
|
659 |
<div id="shortcode" class="description">
|
@@ -829,7 +851,7 @@ function show_2_factor_login_settings( $user ) {
|
|
829 |
$mo2f_active_tab = '2factor_setup';
|
830 |
?>
|
831 |
|
832 |
-
<div class="mo2f_advanced_options_EC" style="width: 85%;border: 0px
|
833 |
|
834 |
<div id="mo2f_login_options">
|
835 |
<a href="#standard_premium_options" style="float:right">Show Standard/Premium
|
@@ -1081,7 +1103,7 @@ function get_standard_premium_options( $user ) {
|
|
1081 |
$is_NC = get_option( 'mo2f_is_NC' );
|
1082 |
|
1083 |
?>
|
1084 |
-
<div
|
1085 |
<div id="standard_premium_options" style="text-align: center;">
|
1086 |
<p style="font-size:22px;color:darkorange;padding:10px;"><?php echo mo2f_lt( 'Features in the Standard Plan' ); ?></p>
|
1087 |
|
@@ -1365,7 +1387,9 @@ function get_standard_premium_options( $user ) {
|
|
1365 |
|
1366 |
function mo2f_show_verify_password_page() {
|
1367 |
$mo2f_active_tab = isset( $_GET['mo2f_tab'] ) ? $_GET['mo2f_tab'] : '';
|
1368 |
-
$
|
|
|
|
|
1369 |
?>
|
1370 |
<!--Verify password with miniOrange-->
|
1371 |
<form name="f" method="post" action="">
|
31 |
|
32 |
$mo2fa_tab='mo2f_ns';
|
33 |
|
34 |
+
if($mo2f_active_tab=="mobile_configure"||$mo2f_active_tab=="mo2f_support"||$mo2f_active_tab=="mo2f_addon"||$mo2f_active_tab=="2factor_setup"|| $mo2f_active_tab=="mo2f_login"||$mo2f_active_tab=="proxy_setup"||$mo2f_active_tab=="mo2f_video_guide"){
|
35 |
$mo2fa_tab='2fa';
|
36 |
}
|
37 |
$session_variables = array( 'mo2f_google_auth', 'mo2f_authy_keys', 'mo2f_mobile_support' );
|
38 |
+
if($mo2f_active_tab=='mobile_configure'){
|
39 |
+
$mo2f_second_factor = mo2f_get_activated_second_factor( $user );
|
40 |
+
$selected_method=mo2f_method_display_name($user,$mo2f_second_factor);
|
41 |
+
if($selected_method=='NONE'){
|
42 |
+
$selected_method = "Not Configured";
|
43 |
+
}
|
44 |
+
$selected_method='<span id="mo2f_selected_method" style="font-size:14px;color:darkorange;"> - '.$selected_method.'</span>';
|
45 |
+
}
|
46 |
+
|
47 |
?>
|
48 |
+
|
49 |
+
<div class="wrap" >
|
50 |
<div style="display:block;font-size:23px;line-height:29px;">
|
51 |
+
<div >
|
52 |
+
<button id="mo2f_need_help" class="need-help-button" data-show="false" onclick="mo2f_opensupport()" ><?php echo mo2f_lt( 'NEED HELP?' ); ?></span> </button>
|
53 |
+
|
54 |
+
<a id="mo2f_restart_tour" class="add-new-h2" style="background-color: #006799;color: white;width: 15%;border: 1px solid #006799;left: 70.5%;top:0px;
|
55 |
+
" onclick="restart_tour();"
|
56 |
+
><?php echo mo2f_lt( 'RESTART TOUR' ); ?></a>
|
57 |
+
|
58 |
+
|
59 |
+
</div>
|
60 |
|
|
|
|
|
61 |
</div>
|
|
|
62 |
</div>
|
63 |
<div id="messages"></div>
|
64 |
<?php echo mo2f_fixed_support();?>
|
65 |
+
|
66 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
67 |
<div class="mo2f_container">
|
68 |
<div style="display: inline-flex; width: 100%;">
|
69 |
+
|
70 |
<div class="tab" style="height:54px;margin-top: 9px;border-bottom: 0px;text-align:center;border-radius: 15px 0px 0px 0px;width: 15%;">
|
71 |
<div><img style="float:left;margin-left:8px;width: 43px;height: 45px;padding-top: 5px;" src="<?php echo plugins_url( 'includes/images/logo.png"', __FILE__ ); ?>"></div>
|
72 |
<br>
|
73 |
<span style="font-size:20px;color:white;float:left;">miniOrange</span>
|
74 |
</div>
|
75 |
+
|
76 |
<div id="tab" class="nav-tab-wrapper" style="border: 0px;width: 85%;">
|
77 |
<div class="" style="display: inline-flex;width: 100%;">
|
78 |
+
|
79 |
+
<a href="admin.php?page=miniOrange_2_factor_settings&mo2f_tab=mobile_configure" style="text-align: center;height:54px;width:50%;margin: 0;line-height: 3;" class="nav-tab <?php echo $mo2fa_tab=='2fa' ? 'nav-tab-active' : ''; ?>" id="mo2f_tab3"><?php echo mo2f_lt( 'Two Factor Authentication'); if($mo2f_active_tab=='mobile_configure'){echo $selected_method;} ?></a>
|
80 |
<?php if ( $can_display_admin_features ) { ?>
|
81 |
|
82 |
<a href="admin.php?page=miniOrange_2_factor_settings&mo2f_tab=mo2f_network&mo2f_sub_tab=mo2f_limit"
|
83 |
style="text-align: center;height:54px;width:50%;margin: 0;line-height: 3;" class="nav-tab <?php echo $mo2f_active_tab == 'mo2f_network' ? 'nav-tab-active' : ''; ?>"
|
84 |
+
id="mo2f_tab4"><?php echo mo2f_lt( 'Website Security' ); ?></a>
|
85 |
+
<a href="admin.php?page=miniOrange_2_factor_settings&mo2f_tab=mo2f_pricing"
|
86 |
+
style="text-align: center;width:33%;margin:0;line-height: 3;" class="nav-tab mo2f_orange"
|
87 |
+
id="mo2f_tab4"><?php echo mo2f_lt( 'Upgrade Plans' ); ?></a><?php } ?>
|
88 |
</div>
|
89 |
</div>
|
90 |
</div>
|
91 |
<div >
|
92 |
+
<?php if ( $mo2f_active_tab != 'mo2f_pricing'){?>
|
93 |
+
<div class="tab" style="min-height:395px;border-radius: 0px 0px 0px 15px; height: 395px">
|
94 |
<span class="tooltiptext"></span>
|
95 |
+
<?php if ( $mo2fa_tab=='2fa' && $mo2f_active_tab != 'mo2f_pricing') {?>
|
96 |
<a href="admin.php?page=miniOrange_2_factor_settings&mo2f_tab=mobile_configure" class="tablinks <?php echo $mo2f_active_tab == 'mobile_configure' ? 'active' : ''; ?>" id="mo2f_tab3"><?php echo mo2f_lt( 'Setup Two-Factor' ); ?></a>
|
97 |
<?php if ( $can_display_admin_features ) { ?>
|
98 |
<?php if ( get_option( 'mo2f_is_NC' ) ) { ?>
|
99 |
<a href="admin.php?page=miniOrange_2_factor_settings&mo2f_tab=mo2f_addon&mo2f_sub_tab=mo2f_sub_tab_rba" class="tablinks <?php echo $mo2f_active_tab == 'mo2f_addon' ? 'active' : ''; ?>" id="mo2f_tab4"><?php echo mo2f_lt( 'Add-ons' ); ?></a><?php }
|
100 |
+
if( ! get_option('mo2f_is_NC') ) { ?>
|
101 |
+
<a href="admin.php?page=miniOrange_2_factor_settings&mo2f_tab=mo2f_login"
|
102 |
class="tablinks <?php echo $mo2f_active_tab == 'mo2f_login' ? 'active' : ''; ?>"
|
103 |
id="mo2f_tab2"><?php echo mo2f_lt( 'Login Options' ); ?></a>
|
104 |
<?php } ?>
|
105 |
<a href="admin.php?page=miniOrange_2_factor_settings&mo2f_tab=mo2f_support"
|
106 |
class="tablinks <?php echo $mo2f_active_tab == 'mo2f_support' ? ' active' : ''; ?>"
|
107 |
id="mo2f_tab7"><?php echo mo2f_lt( 'Support' ) ; ?></a>
|
108 |
+
<a href="admin.php?page=miniOrange_2_factor_settings&mo2f_tab=mo2f_video_guide"
|
109 |
+
class="tablinks <?php echo $mo2f_active_tab == 'mo2f_video_guide' ? ' active' : ''; ?>"
|
110 |
+
id="mo2f_tab8"><?php echo mo2f_lt( 'Video Guide' ) ; ?></a>
|
111 |
+
<a id="mo2f_forum" class="tablinks" href="https://wordpress.org/support/plugin/miniorange-2-factor-authentication" target="_blank" ><?php echo mo2f_lt( 'WP Forum' ); ?></a>
|
112 |
+
<a id="mo2f_monav_faq" class="tablinks" href="https://faq.miniorange.com/kb/two-factor-authentication"
|
113 |
+
target="_blank" ><?php echo mo2f_lt( 'FAQ' ); ?></a>
|
114 |
+
<a id="mo2f_account" href="admin.php?page=miniOrange_2_factor_settings&mo2f_tab=2factor_setup"
|
115 |
+
class="tablinks <?php echo $mo2f_active_tab == '2factor_setup' ? 'active' : ''; ?>"
|
116 |
+
> <?php echo $account_tab_name; ?></a>
|
117 |
+
|
118 |
+
|
119 |
+
|
120 |
<?php }//mo2f_network
|
121 |
+
} else if ( $mo2fa_tab=='mo2f_ns' && $mo2f_active_tab != 'mo2f_pricing'){ ?>
|
122 |
+
<a href="admin.php?page=miniOrange_2_factor_settings&mo2f_tab=mo2f_network&mo2f_sub_tab=mo2f_limit" class="tablinks <?php echo $mo2f_sub_active_tab == 'mo2f_limit' ? ' active' : ''; ?>" id="mo2f_tab7"><?php echo mo2f_lt( 'Login Protection' ) ; ?></a>
|
123 |
|
124 |
+
<a href="admin.php?page=miniOrange_2_factor_settings&mo2f_tab=mo2f_network&mo2f_sub_tab=show_2_factor_ip_block" class="tablinks <?php echo $mo2f_sub_active_tab == 'show_2_factor_ip_block' ? 'active' : ''; ?>" id="mo2f_tab4"><?php echo mo2f_lt( 'IP Blocking' ); ?></a>
|
125 |
<a href="admin.php?page=miniOrange_2_factor_settings&mo2f_tab=mo2f_network&mo2f_sub_tab=mo2f_monitor" class="tablinks <?php echo $mo2f_sub_active_tab == 'mo2f_monitor' ? 'active' : ''; ?>" id="mo2f_tab3"><?php echo mo2f_lt( 'Monitoring' ); ?></a>
|
126 |
+
<a id="mo2f_account" href="admin.php?page=miniOrange_2_factor_settings&mo2f_tab=mo2f_network&mo2f_sub_tab=2factor_setup"
|
127 |
+
class="tablinks <?php echo $mo2f_sub_active_tab == '2factor_setup' ? 'active' : ''; ?>"
|
128 |
+
> <?php echo $account_tab_name; ?></a>
|
129 |
+
<a id="mo2f_forum" class="tablinks" href="https://wordpress.org/support/plugin/miniorange-2-factor-authentication" target="_blank" ><?php echo mo2f_lt( 'WP Forum' ); ?></a>
|
130 |
+
<a id="mo2f_monav_faq" class="tablinks" href="https://faq.miniorange.com/kb/two-factor-authentication"
|
131 |
+
target="_blank" ><?php echo mo2f_lt( 'FAQ' ); ?></a>
|
132 |
<?php
|
133 |
} ?>
|
134 |
</div>
|
135 |
+
<?php }?>
|
136 |
+
<div id="mo2f_left_navigation" class="tabcontent" <?php if ( $mo2f_active_tab == 'mo2f_pricing'){echo 'style="width: 100%;"';}?>>
|
137 |
+
|
|
|
138 |
<?php
|
139 |
/* to update the status of existing customers for adding their user registration status */
|
140 |
if ( get_option( 'mo_2factor_admin_registration_status' ) == 'MO_2_FACTOR_CUSTOMER_REGISTERED_SUCCESS' && get_option( 'mo2f_miniorange_admin' ) == $user->ID ) {
|
143 |
/* ----------------------------------------- */
|
144 |
$session_variables = array( 'mo2f_google_auth', 'mo2f_authy_keys', 'mo2f_mobile_support' );
|
145 |
if ( $mo2f_active_tab == 'mobile_configure' ) {
|
|
|
146 |
mo2f_select_2_factor_method( $user, $mo2f_second_factor );
|
147 |
+
} else if ( $mo2f_active_tab == 'mo2f_video_guide' ) {
|
148 |
+
mo2f_video_guide();
|
149 |
} else if ( $can_display_admin_features && $mo2f_sub_active_tab == 'mo2f_limit' ) {
|
150 |
MO2f_Utility::unset_session_variables( $session_variables );
|
151 |
do_action('mo2f_network_view_brute_force',$user);
|
214 |
}
|
215 |
}
|
216 |
?>
|
217 |
+
|
|
|
|
|
218 |
</div>
|
219 |
</div>
|
220 |
</div>
|
245 |
<div class="mo2f_support_layout" id="mo2f_support_layout" hidden>
|
246 |
|
247 |
<h3><?php echo mo2f_lt( 'Support' ); ?>
|
248 |
+
<a id="mo2f_wp_forum" class="add-new-h2" href="https://wordpress.org/support/plugin/miniorange-2-factor-authentication"
|
249 |
target="_blank" style="float:right"><?php echo mo2f_lt( 'Ask questions on the WP Forum' ); ?></a>
|
250 |
+
<a id="mo2f_mo_faq" class="add-new-h2" href="https://faq.miniorange.com/kb/two-factor-authentication"
|
251 |
target="_blank" style="float:right"><?php echo mo2f_lt( 'FAQ' ); ?></a>
|
252 |
</h3>
|
253 |
<hr width="100%">
|
273 |
<tr>
|
274 |
<td>
|
275 |
<input type="text" class="mo2f_table_textbox" style="width:100% !important;"
|
276 |
+
name="mo2f_query_phone" id="mo2f_query_phone"
|
277 |
value="<?php echo $user_phone; ?>"
|
278 |
placeholder="Enter your phone"/>
|
279 |
</td>
|
304 |
<br>
|
305 |
</div>
|
306 |
<script>
|
307 |
+
jQuery("#mo2f_query_phone").intlTelInput();
|
308 |
var mo2f_backdrop = document.getElementById('mo2f_backdrop');
|
309 |
// hide if clicked in
|
310 |
window.onclick = function (event) {
|
345 |
function mo2f_show_registration_page( $user ) {
|
346 |
global $Mo2fdbQueries;
|
347 |
$mo2f_active_tab = isset( $_GET['mo2f_tab'] ) ? $_GET['mo2f_tab'] : '';
|
348 |
+
$mo2f_active_sub_tab = isset( $_GET['mo2f_sub_tab'] ) ? $_GET['mo2f_sub_tab'] : '';//mo2f_sub_tab=2factor_setup
|
349 |
+
$is_registration = ($mo2f_active_tab =='2factor_setup'||$mo2f_active_sub_tab=='2factor_setup') ? true : false;
|
350 |
?>
|
351 |
<!--Register with miniOrange-->
|
352 |
<form name="f" method="post" action="">
|
486 |
<?php if ( ! get_option( 'mo2f_rba_purchased' ) ) { ?>
|
487 |
<a onclick="mo2f_addonform('wp_2fa_addon_rba')" id="mo2f_purchase_rba_addon"
|
488 |
class="button button-primary button-large"
|
489 |
+
style="float:right;"><?php echo __( 'Purchase', 'miniorange-2-factor-authentication' ); ?></a><?php } ?>
|
490 |
<div id="mo2f_rba_addon_hide"><h3 id="toggle_rba_description"
|
491 |
class="mo2f_pointer"><?php echo __( 'Description', 'miniorange-2-factor-authentication' ); ?> </h3>
|
492 |
<p id="rba_description" style="margin:2% 2% 2% 4%">
|
551 |
$mo2f_active_sub_sub_tab = isset( $_GET['mo2f_sub_sub_tab'] ) ? $_GET['mo2f_sub_sub_tab'] : 'rba'; ?>
|
552 |
<div class="mo2f_table_layout" style="border:0px;width: 80%;">
|
553 |
<?php //echo mo2f_check_if_registered_with_miniorange( $current_user ); ?>
|
554 |
+
<div class="mo2f_vertical-submenu" style="text-align:justify;">
|
555 |
<a id="defaultOpen" class="nav-tab" onclick="openPage('rba', this, '#4CAF50')"
|
556 |
+
><?php echo __( 'Remember Device', 'miniorange-2-factor-authentication' ); ?></a>
|
557 |
+
<a id="onclickOpen" class="nav-tab" onclick="openPage('personal', this, '#4CAF50')" ><?php echo __( 'Customize login Popups', 'miniorange-2-factor-authentication' ); ?></a>
|
558 |
<a id="onclick" class="nav-tab" onclick="openPage('shortcode', this, '#4CAF50')" ><?php echo __( 'Shortcode', 'miniorange-2-factor-authentication' ); ?></a>
|
559 |
</div>
|
560 |
<br><br><br><br>
|
615 |
<?php if ( ! get_option( 'mo2f_personalization_purchased' ) ) { ?> <a
|
616 |
onclick="mo2f_addonform('wp_2fa_addon_shortcode')" id="mo2f_purchase_custom_addon"
|
617 |
class="button button-primary button-large"
|
618 |
+
style="float:right;"><?php echo __( 'Purchase', 'miniorange-2-factor-authentication' ); ?></a>
|
619 |
<?php } ?>
|
620 |
<div id="mo2f_custom_addon_hide">
|
621 |
<h3 id="toggle_personalization_description" class="mo2f_pointer">
|
675 |
<?php } if ( ! get_option( 'mo2f_shortcode_purchased' ) ) { ?>
|
676 |
<a onclick="mo2f_addonform('wp_2fa_addon_personalization')" id="mo2f_purchase_shortcode_addon"
|
677 |
class="button button-primary button-large"
|
678 |
+
style="float:right;"><?php echo __( 'Purchase', 'miniorange-2-factor-authentication' ); ?></a>
|
679 |
<?php } ?>
|
680 |
<h3 id="toggle_shortcode_description" class="mo2f_pointer">
|
681 |
<div id="shortcode" class="description">
|
851 |
$mo2f_active_tab = '2factor_setup';
|
852 |
?>
|
853 |
|
854 |
+
<div class="mo2f_advanced_options_EC" style="width: 85%;border: 0px;">
|
855 |
|
856 |
<div id="mo2f_login_options">
|
857 |
<a href="#standard_premium_options" style="float:right">Show Standard/Premium
|
1103 |
$is_NC = get_option( 'mo2f_is_NC' );
|
1104 |
|
1105 |
?>
|
1106 |
+
<div >
|
1107 |
<div id="standard_premium_options" style="text-align: center;">
|
1108 |
<p style="font-size:22px;color:darkorange;padding:10px;"><?php echo mo2f_lt( 'Features in the Standard Plan' ); ?></p>
|
1109 |
|
1387 |
|
1388 |
function mo2f_show_verify_password_page() {
|
1389 |
$mo2f_active_tab = isset( $_GET['mo2f_tab'] ) ? $_GET['mo2f_tab'] : '';
|
1390 |
+
$mo2f_active_sub_tab = isset( $_GET['mo2f_sub_tab'] ) ? $_GET['mo2f_sub_tab'] : '';//mo2f_sub_tab=2factor_setup
|
1391 |
+
$is_registration = ($mo2f_active_tab =='2factor_setup'||$mo2f_active_sub_tab=='2factor_setup') ? true : false;
|
1392 |
+
// $is_registration = $is_registration?(($mo2f_active_sub_tab=='2factor_setup')? true :false):false;
|
1393 |
?>
|
1394 |
<!--Verify password with miniOrange-->
|
1395 |
<form name="f" method="post" action="">
|
miniorange_2_factor_mobile_configuration.php
CHANGED
@@ -252,7 +252,7 @@ function mo2f_show_instruction_to_allusers( $user, $mo2f_second_factor ) {
|
|
252 |
<?php if ( current_user_can( 'manage_options' ) == false ) { ?>
|
253 |
<div><?php } ?>
|
254 |
|
255 |
-
<div class="mo2f_table_layout" style="width:
|
256 |
|
257 |
<h3><?php echo mo2f_lt( 'Your Profile' ); ?></h3>
|
258 |
<table border="1"
|
@@ -389,6 +389,35 @@ function mo2f_show_2FA_test_screen( $user, $selected2FAmethod ) {
|
|
389 |
|
390 |
}
|
391 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
392 |
|
393 |
function mo2f_select_2_factor_method( $user, $mo2f_second_factor ) {
|
394 |
global $Mo2fdbQueries;
|
@@ -407,9 +436,15 @@ function mo2f_select_2_factor_method( $user, $mo2f_second_factor ) {
|
|
407 |
$selectedMethod = 'Google Authenticator';
|
408 |
update_user_meta( $user->ID, 'mo2f_external_app_type', $selectedMethod );
|
409 |
}
|
|
|
410 |
} else {
|
411 |
$selectedMethod = MO2f_Utility::mo2f_decode_2_factor( $mo2f_second_factor, "servertowpdb" );
|
|
|
412 |
}
|
|
|
|
|
|
|
|
|
413 |
if ( $selectedMethod !== 'NONE' ) {
|
414 |
$Mo2fdbQueries->update_user_details( $user->ID, array(
|
415 |
'mo2f_configured_2FA_method' => $selectedMethod,
|
@@ -422,8 +457,7 @@ function mo2f_select_2_factor_method( $user, $mo2f_second_factor ) {
|
|
422 |
update_option( 'mo2f_show_sms_transaction_message', 1 );
|
423 |
} else {
|
424 |
update_option( 'mo2f_show_sms_transaction_message', 0 );
|
425 |
-
}
|
426 |
-
<?php
|
427 |
$is_customer_admin = current_user_can( 'manage_options' ) && get_option( 'mo2f_miniorange_admin' ) == $user->ID;
|
428 |
$can_display_admin_features = ! $is_customer_admin_registered || $is_customer_admin ? true : false;
|
429 |
|
@@ -447,54 +481,8 @@ function mo2f_select_2_factor_method( $user, $mo2f_second_factor ) {
|
|
447 |
$is_NC = get_option( 'mo2f_is_NC' );
|
448 |
|
449 |
?>
|
450 |
-
<div
|
451 |
-
<?php
|
452 |
-
<p style="float:left;" ><span style="color:limegreen;font-weight:bold"><?php echo mo2f_lt( 'HOW DO I CONFIGURE 2FA?' ); ?></span>
|
453 |
-
<br>Just click on <b>Configure</b> of your preferred authentication method below.</p><br><br><br>
|
454 |
-
<br>
|
455 |
-
<?php } ?>
|
456 |
-
|
457 |
-
<div >
|
458 |
-
<span id="mo2f_selected_method" style="float:left;font-size:20px;color:darkorange;"><?php echo mo2f_lt( 'Selected Method - ' ); ?><?php echo $selectedMethod; ?></span>
|
459 |
-
<div >
|
460 |
-
<a id="mo2f_restart_tour" class="add-new-h2" onclick="restart_tour();"
|
461 |
-
style="float:right;background-color:#006799;color:white;"><?php echo mo2f_lt( 'RESTART TOUR' ); ?></a>
|
462 |
-
</div><br><br>
|
463 |
-
<button class="button button-primary button-large" id="test" style="float:left;"
|
464 |
-
onclick="testAuthenticationMethod('<?php echo $selectedMethod; ?>');"
|
465 |
-
<?php echo $is_customer_registered && ( $selectedMethod != 'NONE' ) ? "" : " disabled "; ?>>Test
|
466 |
-
Authentication Method
|
467 |
-
</button>
|
468 |
-
</div>
|
469 |
-
<br><br>
|
470 |
-
<?php
|
471 |
-
if ( in_array( $selectedMethod, array(
|
472 |
-
"Google Authenticator",
|
473 |
-
"miniOrange Soft Token",
|
474 |
-
"Authy Authenticator"
|
475 |
-
) ) ) { ?>
|
476 |
-
<div style="float:right;">
|
477 |
-
<form name="f" method="post" action="" id="mo2f_enable_2FA_on_login_page_form">
|
478 |
-
<input type="hidden" name="option" value="mo2f_enable_2FA_on_login_page_option"/>
|
479 |
-
<input type="hidden" name="mo2f_enable_2FA_on_login_page_option_nonce"
|
480 |
-
value="<?php echo wp_create_nonce( "mo2f-enable-2FA-on-login-page-option-nonce" ) ?>"/>
|
481 |
-
|
482 |
-
<input type="checkbox" id="mo2f_enable_2fa_prompt_on_login_page"
|
483 |
-
name="mo2f_enable_2fa_prompt_on_login_page"
|
484 |
-
value="1" <?php checked( get_option( 'mo2f_enable_2fa_prompt_on_login_page' ) == 1 );
|
485 |
-
|
486 |
-
if ( ! in_array( $Mo2fdbQueries->get_user_detail( 'mo_2factor_user_registration_status', $user->ID ), array(
|
487 |
-
'MO_2_FACTOR_PLUGIN_SETTINGS',
|
488 |
-
'MO_2_FACTOR_INITIALIZE_TWO_FACTOR'
|
489 |
-
) ) ) {
|
490 |
-
echo 'disabled';
|
491 |
-
} ?> onChange="this.form.submit()"/>
|
492 |
-
<?php echo mo2f_lt( 'Enable 2FA prompt on the WP Login Page' ); ?>
|
493 |
-
</form>
|
494 |
-
</div>
|
495 |
-
<br>
|
496 |
-
<?php
|
497 |
-
}
|
498 |
|
499 |
$free_plan_existing_user = array(
|
500 |
"Email Verification",
|
@@ -543,7 +531,6 @@ function mo2f_select_2_factor_method( $user, $mo2f_second_factor ) {
|
|
543 |
$premium_plan_methods_existing_user = array_chunk( array_merge( $standard_plan_existing_user, $premium_plan ), 3 );
|
544 |
$premium_plan_methods_new_user = array_chunk( array_merge( $standard_plan_new_user, $premium_plan ), 3 );
|
545 |
?>
|
546 |
-
<hr style="width:106%;">
|
547 |
<div class="mo2f_setup_2factor_tab">
|
548 |
|
549 |
<div>
|
@@ -551,17 +538,49 @@ function mo2f_select_2_factor_method( $user, $mo2f_second_factor ) {
|
|
551 |
<div>
|
552 |
<a class="mo2f_view_free_plan_auth_methods" onclick="show_free_plan_auth_methods()">
|
553 |
<img src="<?php echo plugins_url( 'includes/images/right-arrow.png"', __FILE__ ); ?>"
|
554 |
-
class="mo2f_2factor_heading_images"/>
|
555 |
-
<p class="mo2f_heading_style"><?php echo mo2f_lt( 'Authentication methods' ); ?>
|
556 |
<?php if ( $can_display_admin_features ) { ?>
|
557 |
<span style="color:limegreen">( <?php echo mo2f_lt( 'Current Plan' ); ?> )</span>
|
558 |
<?php } ?>
|
|
|
|
|
|
|
559 |
</p>
|
560 |
</a>
|
|
|
561 |
|
562 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
563 |
|
564 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
565 |
|
566 |
</div>
|
567 |
<hr>
|
@@ -623,7 +642,7 @@ function mo2f_select_2_factor_method( $user, $mo2f_second_factor ) {
|
|
623 |
{
|
624 |
element: "#GoogleAuthenticator_thumbnail_2_factor",
|
625 |
title: "Google Authenticator Method",
|
626 |
-
content: "Select the authentication method you wish to configure, for
|
627 |
backdrop:'body',
|
628 |
backdropPadding:'6'
|
629 |
}, {
|
@@ -650,14 +669,21 @@ function mo2f_select_2_factor_method( $user, $mo2f_second_factor ) {
|
|
650 |
content: "Please test the 2FA method you configured, to ensure it works.",
|
651 |
backdrop:'body',
|
652 |
backdropPadding:'6'
|
|
|
653 |
}
|
654 |
-
|
|
|
655 |
element: "#mo2f_need_help",
|
656 |
title: "Need Any Help?",
|
657 |
content: "Click here to reach us anytime you need any help with the plugin.",
|
658 |
backdrop:'body',
|
659 |
-
|
|
|
|
|
|
|
|
|
660 |
}
|
|
|
661 |
,{
|
662 |
element: "#mo2f_upgrade",
|
663 |
title: "Premium Plans",
|
@@ -1053,7 +1079,9 @@ function show_2_factor_pricing_page( $user ) {
|
|
1053 |
<h3>Features \ Plans</h3></th>
|
1054 |
<th class="text-center" width="20%"><h3>Free</h3>
|
1055 |
|
1056 |
-
<p class="mo2f_licensing_plans_plan_desc">Basic 2FA for Small Scale Web Businesses</p><br
|
|
|
|
|
1057 |
<th class="text-center" width="20%"><h3>Standard</h3>
|
1058 |
|
1059 |
<p class="mo2f_licensing_plans_plan_desc">Intermediate 2FA for Medium Scale Web Businesses with
|
252 |
<?php if ( current_user_can( 'manage_options' ) == false ) { ?>
|
253 |
<div><?php } ?>
|
254 |
|
255 |
+
<div class="mo2f_table_layout" style="width: 100%;border:0px;">
|
256 |
|
257 |
<h3><?php echo mo2f_lt( 'Your Profile' ); ?></h3>
|
258 |
<table border="1"
|
389 |
|
390 |
}
|
391 |
|
392 |
+
function mo2f_method_display_name($user,$mo2f_second_factor){
|
393 |
+
|
394 |
+
if ( $mo2f_second_factor == 'GOOGLE AUTHENTICATOR' ) {
|
395 |
+
$app_type = get_user_meta( $user->ID, 'mo2f_external_app_type', true );
|
396 |
+
|
397 |
+
if ( $app_type == 'Google Authenticator' ) {
|
398 |
+
$selectedMethod = 'Google Authenticator';
|
399 |
+
} else if ( $app_type == 'Authy Authenticator' ) {
|
400 |
+
$selectedMethod = 'Authy Authenticator';
|
401 |
+
} else {
|
402 |
+
$selectedMethod = 'Google Authenticator';
|
403 |
+
update_user_meta( $user->ID, 'mo2f_external_app_type', $selectedMethod );
|
404 |
+
}
|
405 |
+
} else {
|
406 |
+
$selectedMethod = MO2f_Utility::mo2f_decode_2_factor( $mo2f_second_factor, "servertowpdb" );
|
407 |
+
}
|
408 |
+
return $selectedMethod;
|
409 |
+
|
410 |
+
}
|
411 |
+
|
412 |
+
function mo2f_video_guide(){?>
|
413 |
+
<div style="margin:4%;">
|
414 |
+
<span style="font-weight:bold;font-size:18px;">How to configure Two Factor Method?</span>
|
415 |
+
<p>You can configure any method of your choice. We will give a demo on how we can configure Google Authenticator.
|
416 |
+
<div style="margin:2%;">
|
417 |
+
<iframe width="560" height="315" src="https://www.youtube.com/embed/vVGXjedIaGs" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
|
418 |
+
</div>
|
419 |
+
</div>
|
420 |
+
<?php }
|
421 |
|
422 |
function mo2f_select_2_factor_method( $user, $mo2f_second_factor ) {
|
423 |
global $Mo2fdbQueries;
|
436 |
$selectedMethod = 'Google Authenticator';
|
437 |
update_user_meta( $user->ID, 'mo2f_external_app_type', $selectedMethod );
|
438 |
}
|
439 |
+
$testMethod=$selectedMethod;
|
440 |
} else {
|
441 |
$selectedMethod = MO2f_Utility::mo2f_decode_2_factor( $mo2f_second_factor, "servertowpdb" );
|
442 |
+
$testMethod=$selectedMethod;
|
443 |
}
|
444 |
+
|
445 |
+
if($testMethod=='NONE'){
|
446 |
+
$testMethod = "Not Configured";
|
447 |
+
}
|
448 |
if ( $selectedMethod !== 'NONE' ) {
|
449 |
$Mo2fdbQueries->update_user_details( $user->ID, array(
|
450 |
'mo2f_configured_2FA_method' => $selectedMethod,
|
457 |
update_option( 'mo2f_show_sms_transaction_message', 1 );
|
458 |
} else {
|
459 |
update_option( 'mo2f_show_sms_transaction_message', 0 );
|
460 |
+
}
|
|
|
461 |
$is_customer_admin = current_user_can( 'manage_options' ) && get_option( 'mo2f_miniorange_admin' ) == $user->ID;
|
462 |
$can_display_admin_features = ! $is_customer_admin_registered || $is_customer_admin ? true : false;
|
463 |
|
481 |
$is_NC = get_option( 'mo2f_is_NC' );
|
482 |
|
483 |
?>
|
484 |
+
<div style="width:93%;">
|
485 |
+
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
486 |
|
487 |
$free_plan_existing_user = array(
|
488 |
"Email Verification",
|
531 |
$premium_plan_methods_existing_user = array_chunk( array_merge( $standard_plan_existing_user, $premium_plan ), 3 );
|
532 |
$premium_plan_methods_new_user = array_chunk( array_merge( $standard_plan_new_user, $premium_plan ), 3 );
|
533 |
?>
|
|
|
534 |
<div class="mo2f_setup_2factor_tab">
|
535 |
|
536 |
<div>
|
538 |
<div>
|
539 |
<a class="mo2f_view_free_plan_auth_methods" onclick="show_free_plan_auth_methods()">
|
540 |
<img src="<?php echo plugins_url( 'includes/images/right-arrow.png"', __FILE__ ); ?>"
|
541 |
+
class="mo2f_2factor_heading_images" style="margin-top: 2px;"/>
|
542 |
+
<p class="mo2f_heading_style" style="padding:0px;"><?php echo mo2f_lt( 'Authentication methods' ); ?>
|
543 |
<?php if ( $can_display_admin_features ) { ?>
|
544 |
<span style="color:limegreen">( <?php echo mo2f_lt( 'Current Plan' ); ?> )</span>
|
545 |
<?php } ?>
|
546 |
+
<button class="button button-primary button-large" id="test" style="float:right;" onclick="testAuthenticationMethod('<?php echo $selectedMethod; ?>');"
|
547 |
+
<?php echo $is_customer_registered && ( $selectedMethod != 'NONE' ) ? "" : " disabled "; ?>>Test : <?php echo $testMethod;?>
|
548 |
+
</button>
|
549 |
</p>
|
550 |
</a>
|
551 |
+
|
552 |
|
553 |
</div>
|
554 |
+
<?php
|
555 |
+
if ( in_array( $selectedMethod, array(
|
556 |
+
"Google Authenticator",
|
557 |
+
"miniOrange Soft Token",
|
558 |
+
"Authy Authenticator"
|
559 |
+
) ) ) { ?>
|
560 |
+
<div style="float:right;">
|
561 |
+
<form name="f" method="post" action="" id="mo2f_enable_2FA_on_login_page_form">
|
562 |
+
<input type="hidden" name="option" value="mo2f_enable_2FA_on_login_page_option"/>
|
563 |
+
<input type="hidden" name="mo2f_enable_2FA_on_login_page_option_nonce"
|
564 |
+
value="<?php echo wp_create_nonce( "mo2f-enable-2FA-on-login-page-option-nonce" ) ?>"/>
|
565 |
|
566 |
+
<input type="checkbox" id="mo2f_enable_2fa_prompt_on_login_page"
|
567 |
+
name="mo2f_enable_2fa_prompt_on_login_page"
|
568 |
+
value="1" <?php checked( get_option( 'mo2f_enable_2fa_prompt_on_login_page' ) == 1 );
|
569 |
+
|
570 |
+
if ( ! in_array( $Mo2fdbQueries->get_user_detail( 'mo_2factor_user_registration_status', $user->ID ), array(
|
571 |
+
'MO_2_FACTOR_PLUGIN_SETTINGS',
|
572 |
+
'MO_2_FACTOR_INITIALIZE_TWO_FACTOR'
|
573 |
+
) ) ) {
|
574 |
+
echo 'disabled';
|
575 |
+
} ?> onChange="this.form.submit()"/>
|
576 |
+
<?php echo mo2f_lt( 'Enable 2FA prompt on the WP Login Page' ); ?>
|
577 |
+
</form>
|
578 |
+
</div>
|
579 |
+
<br><br>
|
580 |
+
<?php
|
581 |
+
}
|
582 |
+
|
583 |
+
echo mo2f_create_2fa_form( $user, "free_plan", $is_NC ? $free_plan_methods_new_user : $free_plan_methods_existing_user, $can_display_admin_features ); ?>
|
584 |
|
585 |
</div>
|
586 |
<hr>
|
642 |
{
|
643 |
element: "#GoogleAuthenticator_thumbnail_2_factor",
|
644 |
title: "Google Authenticator Method",
|
645 |
+
content: "Select the authentication method you wish to configure, for example Google Authenticator.",
|
646 |
backdrop:'body',
|
647 |
backdropPadding:'6'
|
648 |
}, {
|
669 |
content: "Please test the 2FA method you configured, to ensure it works.",
|
670 |
backdrop:'body',
|
671 |
backdropPadding:'6'
|
672 |
+
|
673 |
}
|
674 |
+
|
675 |
+
, {
|
676 |
element: "#mo2f_need_help",
|
677 |
title: "Need Any Help?",
|
678 |
content: "Click here to reach us anytime you need any help with the plugin.",
|
679 |
backdrop:'body',
|
680 |
+
placement:'bottom',
|
681 |
+
backdropPadding:'6',
|
682 |
+
onNext: function(){
|
683 |
+
mo2f_opensupport();
|
684 |
+
}
|
685 |
}
|
686 |
+
|
687 |
,{
|
688 |
element: "#mo2f_upgrade",
|
689 |
title: "Premium Plans",
|
1079 |
<h3>Features \ Plans</h3></th>
|
1080 |
<th class="text-center" width="20%"><h3>Free</h3>
|
1081 |
|
1082 |
+
<p class="mo2f_licensing_plans_plan_desc">Basic 2FA for Small Scale Web Businesses</p><br>
|
1083 |
+
<span style='color:red;font-size:18px;'>(Current Plan)</span>
|
1084 |
+
</th>
|
1085 |
<th class="text-center" width="20%"><h3>Standard</h3>
|
1086 |
|
1087 |
<p class="mo2f_licensing_plans_plan_desc">Intermediate 2FA for Medium Scale Web Businesses with
|
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/Authy/LastPass Authenticator, QR Code, Push Notification, Soft Token and Security Questions(KBA) for 1 User in the free version of the plugin.
|
6 |
-
* Version: 5.1.
|
7 |
* Author: miniOrange
|
8 |
* Author URI: https://miniorange.com
|
9 |
* License: GPL2
|
@@ -23,11 +23,10 @@ require( 'class-mo2f-constants.php' );
|
|
23 |
require( 'class-miniorange-2-factor-login.php' );
|
24 |
require( 'miniorange_2_factor_support.php' );
|
25 |
require( 'class-miniorange-2-factor-pass2fa-login.php' );
|
26 |
-
//require('miniorange_handler.php');
|
27 |
require('resources/constants.php');
|
28 |
require('resources/messages.php');
|
29 |
-
//require('integrations/class_buddypress.php');
|
30 |
define( 'MOAUTH_PATH', plugins_url( __FILE__ ) );
|
|
|
31 |
|
32 |
|
33 |
class Miniorange_Authentication {
|
@@ -36,7 +35,7 @@ class Miniorange_Authentication {
|
|
36 |
private $defaultApiKey = "fFd2XcvTGDemZvbw1bcUesNJWEqKbbUq";
|
37 |
|
38 |
function __construct() {
|
39 |
-
|
40 |
add_option( 'mo2f_activate_plugin', 1 );
|
41 |
add_option( 'mo2f_login_option', 1 );
|
42 |
add_option( 'mo2f_number_of_transactions', 1 );
|
@@ -350,7 +349,7 @@ class Miniorange_Authentication {
|
|
350 |
<script>
|
351 |
jQuery(document).ready(function () {
|
352 |
var message = "<?php echo $message; ?>";
|
353 |
-
jQuery('#messages').append("<div style='padding:5px;'><div class='error notice is-dismissible mo2f_error_container' style='position: fixed;left:
|
354 |
});
|
355 |
</script>
|
356 |
<?php
|
@@ -362,7 +361,7 @@ class Miniorange_Authentication {
|
|
362 |
<script>
|
363 |
jQuery(document).ready(function () {
|
364 |
var message = "<?php echo $message; ?>";
|
365 |
-
jQuery('#messages').append("<div style='padding:5px;'><div class='updated notice is-dismissible mo2f_success_container' style='position: fixed;left:
|
366 |
});
|
367 |
</script>
|
368 |
<?php
|
@@ -416,21 +415,21 @@ class Miniorange_Authentication {
|
|
416 |
}
|
417 |
|
418 |
function mo_2_factor_enable_frontend_style() {
|
419 |
-
wp_enqueue_style( 'mo2f_frontend_login_style', plugins_url( 'includes/css/front_end_login.css?version=
|
420 |
-
wp_enqueue_style( 'bootstrap_style', plugins_url( 'includes/css/bootstrap.min.css?version=
|
421 |
-
wp_enqueue_style( 'mo_2_factor_admin_settings_phone_style', plugins_url( 'includes/css/phone.css?version=
|
422 |
wp_enqueue_style( 'mo_2_factor_wpb-fa', plugins_url( 'includes/css/font-awesome.min.css', __FILE__ ) );
|
423 |
-
wp_enqueue_style( 'mo2f_login_popup_style', plugins_url(
|
424 |
}
|
425 |
|
426 |
function plugin_settings_style( $mo2fa_hook_page ) {
|
427 |
if ( 'toplevel_page_miniOrange_2_factor_settings' != $mo2fa_hook_page ) {
|
428 |
return;
|
429 |
}
|
430 |
-
wp_enqueue_style( 'mo_2_factor_admin_settings_style', plugins_url( 'includes/css/style_settings.css?version=
|
431 |
-
wp_enqueue_style( 'mo_2_factor_admin_settings_phone_style', plugins_url( 'includes/css/phone.css?version=
|
432 |
-
wp_enqueue_style( 'bootstrap_style', plugins_url( 'includes/css/bootstrap.min.css?version=
|
433 |
-
wp_enqueue_style( 'bootstrap_style_ass', plugins_url( 'includes/css/bootstrap-tour-standalone.css?version=
|
434 |
wp_enqueue_style( 'mo_2_factor_wpb-fa', plugins_url( 'includes/css/font-awesome.min.css', __FILE__ ) );
|
435 |
wp_enqueue_style( 'mo2f_ns_admin_settings_datatable_style', plugins_url('includes/css/jquery.dataTables.min.css', __FILE__));
|
436 |
}
|
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/Authy/LastPass Authenticator, QR Code, Push Notification, Soft Token and Security Questions(KBA) for 1 User in the free version of the plugin.
|
6 |
+
* Version: 5.1.22
|
7 |
* Author: miniOrange
|
8 |
* Author URI: https://miniorange.com
|
9 |
* License: GPL2
|
23 |
require( 'class-miniorange-2-factor-login.php' );
|
24 |
require( 'miniorange_2_factor_support.php' );
|
25 |
require( 'class-miniorange-2-factor-pass2fa-login.php' );
|
|
|
26 |
require('resources/constants.php');
|
27 |
require('resources/messages.php');
|
|
|
28 |
define( 'MOAUTH_PATH', plugins_url( __FILE__ ) );
|
29 |
+
define( 'MO2F_VERSION', '5.1.22' );
|
30 |
|
31 |
|
32 |
class Miniorange_Authentication {
|
35 |
private $defaultApiKey = "fFd2XcvTGDemZvbw1bcUesNJWEqKbbUq";
|
36 |
|
37 |
function __construct() {
|
38 |
+
|
39 |
add_option( 'mo2f_activate_plugin', 1 );
|
40 |
add_option( 'mo2f_login_option', 1 );
|
41 |
add_option( 'mo2f_number_of_transactions', 1 );
|
349 |
<script>
|
350 |
jQuery(document).ready(function () {
|
351 |
var message = "<?php echo $message; ?>";
|
352 |
+
jQuery('#messages').append("<div style='padding:5px;'><div class='error notice is-dismissible mo2f_error_container' style='position: fixed;left: 60.4%;top: 6%;width: 37%;z-index: 99999;background-color: bisque;font-weight: bold;'> <p class='mo2f_msgs'>" + message + "</p></div></div>");
|
353 |
});
|
354 |
</script>
|
355 |
<?php
|
361 |
<script>
|
362 |
jQuery(document).ready(function () {
|
363 |
var message = "<?php echo $message; ?>";
|
364 |
+
jQuery('#messages').append("<div style='padding:5px;'><div class='updated notice is-dismissible mo2f_success_container' style='position: fixed;left: 60.4%;top: 6%;width: 37%;z-index: 9999;background-color: #bcffb4;font-weight: bold;'> <p class='mo2f_msgs'>" + message + "</p></div></div>");
|
365 |
});
|
366 |
</script>
|
367 |
<?php
|
415 |
}
|
416 |
|
417 |
function mo_2_factor_enable_frontend_style() {
|
418 |
+
wp_enqueue_style( 'mo2f_frontend_login_style', plugins_url( 'includes/css/front_end_login.css?version='.MO2F_VERSION.'', __FILE__ ) );
|
419 |
+
wp_enqueue_style( 'bootstrap_style', plugins_url( 'includes/css/bootstrap.min.css?version='.MO2F_VERSION.'', __FILE__ ) );
|
420 |
+
wp_enqueue_style( 'mo_2_factor_admin_settings_phone_style', plugins_url( 'includes/css/phone.css?version='.MO2F_VERSION.'', __FILE__ ) );
|
421 |
wp_enqueue_style( 'mo_2_factor_wpb-fa', plugins_url( 'includes/css/font-awesome.min.css', __FILE__ ) );
|
422 |
+
wp_enqueue_style( 'mo2f_login_popup_style', plugins_url( "includes/css/mo2f_login_popup_ui.css?version=".MO2F_VERSION."", __FILE__ ) );
|
423 |
}
|
424 |
|
425 |
function plugin_settings_style( $mo2fa_hook_page ) {
|
426 |
if ( 'toplevel_page_miniOrange_2_factor_settings' != $mo2fa_hook_page ) {
|
427 |
return;
|
428 |
}
|
429 |
+
wp_enqueue_style( 'mo_2_factor_admin_settings_style', plugins_url( 'includes/css/style_settings.css?version='.MO2F_VERSION.'', __FILE__ ) );
|
430 |
+
wp_enqueue_style( 'mo_2_factor_admin_settings_phone_style', plugins_url( 'includes/css/phone.css?version='.MO2F_VERSION.'', __FILE__ ) );
|
431 |
+
wp_enqueue_style( 'bootstrap_style', plugins_url( 'includes/css/bootstrap.min.css?version='.MO2F_VERSION.'', __FILE__ ) );
|
432 |
+
wp_enqueue_style( 'bootstrap_style_ass', plugins_url( 'includes/css/bootstrap-tour-standalone.css?version='.MO2F_VERSION.'', __FILE__ ) );
|
433 |
wp_enqueue_style( 'mo_2_factor_wpb-fa', plugins_url( 'includes/css/font-awesome.min.css', __FILE__ ) );
|
434 |
wp_enqueue_style( 'mo2f_ns_admin_settings_datatable_style', plugins_url('includes/css/jquery.dataTables.min.css', __FILE__));
|
435 |
}
|
miniorange_2_factor_support.php
CHANGED
@@ -10,64 +10,65 @@ function mo2f_support() {
|
|
10 |
$user_email = $email ? $email : $user->user_email;
|
11 |
$user_phone = $phone != 'false' ? $phone : '';
|
12 |
?>
|
13 |
-
<div style="margin-left:5%;width:
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
|
|
71 |
<br>
|
72 |
|
73 |
<script>
|
10 |
$user_email = $email ? $email : $user->user_email;
|
11 |
$user_phone = $phone != 'false' ? $phone : '';
|
12 |
?>
|
13 |
+
<div style="margin-left:5%;width: 75%;">
|
14 |
+
<div style="margin:20px;border: 1px solid #ccc;;border-radius: 5px;padding: 0 5%;">
|
15 |
+
<h3><?php echo mo2f_lt( 'Support' ); ?>
|
16 |
+
<a id="mo2f_faq" class="add-new-h2" href="https://wordpress.org/support/plugin/miniorange-2-factor-authentication"
|
17 |
+
target="_blank" style="float:right"><?php echo mo2f_lt( 'Ask questions on the WP Forum' ); ?></a>
|
18 |
+
<a id="mo2f_faq" class="add-new-h2" href="https://faq.miniorange.com/kb/two-factor-authentication"
|
19 |
+
target="_blank" style="float:right"><?php echo mo2f_lt( 'FAQ' ); ?></a>
|
20 |
+
</h3>
|
21 |
+
<hr width="100%">
|
22 |
+
<br>
|
23 |
+
<form name="f" method="post" action="">
|
24 |
+
<div><?php echo mo2f_lt( 'Shoot us a query and we will get back to you.' ); ?> </div>
|
25 |
+
<br>
|
26 |
+
<div><?php echo mo2f_lt( 'Have a look at these FAQ\'s to see if your question has been answered already! ' ); ?>
|
27 |
+
<a href="https://faq.miniorange.com/kb/two-factor-authentication" target="_blank"><b>Frequently Asked
|
28 |
+
Questions.</b></a>
|
29 |
+
</div>
|
30 |
|
31 |
+
<br>
|
32 |
+
<div>
|
33 |
+
<table style="width:95%;">
|
34 |
+
<tr>
|
35 |
+
<td>
|
36 |
+
<input type="email" class="mo2f_table_textbox" id="EMAIL_MANDATORY" name="EMAIL_MANDATORY"
|
37 |
+
value="<?php echo $user_email ?>"
|
38 |
+
placeholder="Enter your email" required="true"/>
|
39 |
+
</td>
|
40 |
+
</tr>
|
41 |
+
<tr>
|
42 |
+
<td>
|
43 |
+
<input type="text" class="mo2f_table_textbox" style="width:100% !important;"
|
44 |
+
name="query_phone" id="query_phone"
|
45 |
+
value="<?php echo $user_phone; ?>"
|
46 |
+
placeholder="Enter your phone"/>
|
47 |
+
</td>
|
48 |
|
49 |
+
</tr>
|
50 |
+
<tr>
|
51 |
+
<td>
|
52 |
+
<textarea id="query" name="query"
|
53 |
+
style="resize: vertical;width:100%;height:143px;"
|
54 |
+
onkeyup="mo2f_valid(this)" onblur="mo2f_valid(this)" onkeypress="mo2f_valid(this)"
|
55 |
+
placeholder="<?php echo mo2f_lt( 'Your query here...' ); ?>"></textarea>
|
56 |
+
</td>
|
57 |
+
</tr>
|
58 |
+
</table>
|
59 |
+
</div>
|
60 |
+
<br>
|
61 |
+
<input type="hidden" name="option" value="mo_2factor_send_query"/>
|
62 |
+
<input type="hidden" name="mo_2factor_send_query_nonce"
|
63 |
+
value="<?php echo wp_create_nonce( "mo-2factor-send-query-nonce" ) ?>"/>
|
64 |
+
<input type="submit" name="send_query" id="send_query"
|
65 |
+
value="<?php echo mo2f_lt( 'Submit Query' ); ?>"
|
66 |
+
style="float:right;" class="button button-primary button-large"/>
|
67 |
+
<br><br>
|
68 |
+
</form>
|
69 |
+
<br>
|
70 |
+
</div>
|
71 |
+
</div>
|
72 |
<br>
|
73 |
|
74 |
<script>
|
network_security/views/miniorange_network_security_brute_force.php
CHANGED
@@ -58,7 +58,7 @@ function mo2f_show_2_factor_login_security($current_user){
|
|
58 |
|
59 |
<br>
|
60 |
<script>
|
61 |
-
<?php if (!
|
62 |
jQuery( document ).ready(function() {
|
63 |
//jQuery(".mo2f_table_layout :input").prop("disabled", true);
|
64 |
jQuery(".mo2f_table_layout :input[type=text]").val("");
|
58 |
|
59 |
<br>
|
60 |
<script>
|
61 |
+
<?php if (!mo2f_is_customer_registered()) { ?>
|
62 |
jQuery( document ).ready(function() {
|
63 |
//jQuery(".mo2f_table_layout :input").prop("disabled", true);
|
64 |
jQuery(".mo2f_table_layout :input[type=text]").val("");
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Donate link: https://miniorange.com/
|
|
5 |
Requires at least: 3.0.1
|
6 |
Tested up to: 5.1
|
7 |
Requires PHP: 5.3.0
|
8 |
-
Stable tag: 5.1.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -232,6 +232,9 @@ miniOrange authentication service has 15+ authentication methods.One time passco
|
|
232 |
|
233 |
== Changelog ==
|
234 |
|
|
|
|
|
|
|
235 |
= 5.1.21 =
|
236 |
* Google Authenticator-Two Factor Authentication (2FA) : Login Redirect.
|
237 |
|
@@ -596,6 +599,9 @@ More descriptive setup messages and UI changes.
|
|
596 |
|
597 |
== Upgrade Notice ==
|
598 |
|
|
|
|
|
|
|
599 |
= 5.1.21 =
|
600 |
* Google Authenticator-Two Factor Authentication (2FA) : Login Redirect.
|
601 |
|
5 |
Requires at least: 3.0.1
|
6 |
Tested up to: 5.1
|
7 |
Requires PHP: 5.3.0
|
8 |
+
Stable tag: 5.1.22
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
232 |
|
233 |
== Changelog ==
|
234 |
|
235 |
+
= 5.1.22 =
|
236 |
+
* Google Authenticator-Two Factor Authentication (2FA) : UI Fixes.
|
237 |
+
|
238 |
= 5.1.21 =
|
239 |
* Google Authenticator-Two Factor Authentication (2FA) : Login Redirect.
|
240 |
|
599 |
|
600 |
== Upgrade Notice ==
|
601 |
|
602 |
+
= 5.1.22 =
|
603 |
+
* Google Authenticator-Two Factor Authentication (2FA) : UI Fixes.
|
604 |
+
|
605 |
= 5.1.21 =
|
606 |
* Google Authenticator-Two Factor Authentication (2FA) : Login Redirect.
|
607 |
|
views/feedback_form.php
CHANGED
@@ -10,7 +10,7 @@
|
|
10 |
wp_enqueue_style( 'wp-pointer' );
|
11 |
wp_enqueue_script( 'wp-pointer' );
|
12 |
wp_enqueue_script( 'utils' );
|
13 |
-
wp_enqueue_style( 'mo_2_factor_admin_plugins_page_style', plugins_url(
|
14 |
|
15 |
$action = 'install-plugin';
|
16 |
$slug = 'miniorange-google-authenticator';
|
10 |
wp_enqueue_style( 'wp-pointer' );
|
11 |
wp_enqueue_script( 'wp-pointer' );
|
12 |
wp_enqueue_script( 'utils' );
|
13 |
+
wp_enqueue_style( 'mo_2_factor_admin_plugins_page_style', plugins_url( "/../includes/css/mo2f_plugins_page.css?version=".MO2F_VERSION."", __FILE__ ) );
|
14 |
|
15 |
$action = 'install-plugin';
|
16 |
$slug = 'miniorange-google-authenticator';
|