Version Description
- Google Authenticator-Two Factor Authentication (2FA) : Fix for some users facing issues in api calls.
Download this release
Release Info
Developer | cyberlord92 |
Plugin | Google Authenticator – WordPress Two Factor Authentication (2FA) |
Version | 5.2.3 |
Comparing to | |
See all releases |
Code changes from version 5.2.2 to 5.2.3
- class-customer-setup.php +3 -3
- class-rba-attributes.php +6 -4
- class-two-factor-setup.php +3 -3
- miniorange_2_factor_settings.php +4 -4
- readme.txt +7 -1
class-customer-setup.php
CHANGED
@@ -189,15 +189,15 @@ class Customer_Setup {
|
|
189 |
exit ();
|
190 |
}
|
191 |
curl_close( $ch );
|
192 |
-
|
193 |
-
if (
|
194 |
$currentTimeInMillis = round( microtime( true ) * 1000 );
|
195 |
$currentTimeInMillis = number_format( $currentTimeInMillis, 0, '', '' );
|
196 |
}
|
197 |
|
198 |
// $currentTimeInMillis = round( microtime( true ) * 1000 );
|
199 |
|
200 |
-
return
|
201 |
}
|
202 |
|
203 |
function create_customer() {
|
189 |
exit ();
|
190 |
}
|
191 |
curl_close( $ch );
|
192 |
+
$is_empty = empty( $content )|| stripos($content, 'BAD REQUEST');
|
193 |
+
if ( $is_empty ) {
|
194 |
$currentTimeInMillis = round( microtime( true ) * 1000 );
|
195 |
$currentTimeInMillis = number_format( $currentTimeInMillis, 0, '', '' );
|
196 |
}
|
197 |
|
198 |
// $currentTimeInMillis = round( microtime( true ) * 1000 );
|
199 |
|
200 |
+
return $is_empty ? $currentTimeInMillis : $content;
|
201 |
}
|
202 |
|
203 |
function create_customer() {
|
class-rba-attributes.php
CHANGED
@@ -73,6 +73,7 @@ class Miniorange_Rba_Attributes {
|
|
73 |
|
74 |
function get_timestamp() {
|
75 |
$url = MO_HOST_NAME . '/moas/rest/mobile/get-timestamp';
|
|
|
76 |
$ch = curl_init( $url );
|
77 |
|
78 |
curl_setopt( $ch, CURLOPT_FOLLOWLOCATION, true );
|
@@ -101,18 +102,19 @@ class Miniorange_Rba_Attributes {
|
|
101 |
}
|
102 |
|
103 |
$content = curl_exec( $ch );
|
104 |
-
|
105 |
if ( curl_errno( $ch ) ) {
|
106 |
echo 'Error in sending curl Request';
|
107 |
exit ();
|
108 |
}
|
109 |
curl_close( $ch );
|
110 |
|
111 |
-
|
|
|
112 |
$currentTimeInMillis = round( microtime( true ) * 1000 );
|
113 |
$currentTimeInMillis = number_format( $currentTimeInMillis, 0, '', '' );
|
114 |
}
|
115 |
-
return
|
116 |
}
|
117 |
|
118 |
function make_curl_call( $url, $fields, $http_header_array ) {
|
@@ -147,7 +149,7 @@ class Miniorange_Rba_Attributes {
|
|
147 |
}
|
148 |
|
149 |
$content = curl_exec( $ch );
|
150 |
-
|
151 |
if ( curl_errno( $ch ) ) {
|
152 |
return null;
|
153 |
}
|
73 |
|
74 |
function get_timestamp() {
|
75 |
$url = MO_HOST_NAME . '/moas/rest/mobile/get-timestamp';
|
76 |
+
|
77 |
$ch = curl_init( $url );
|
78 |
|
79 |
curl_setopt( $ch, CURLOPT_FOLLOWLOCATION, true );
|
102 |
}
|
103 |
|
104 |
$content = curl_exec( $ch );
|
105 |
+
|
106 |
if ( curl_errno( $ch ) ) {
|
107 |
echo 'Error in sending curl Request';
|
108 |
exit ();
|
109 |
}
|
110 |
curl_close( $ch );
|
111 |
|
112 |
+
$is_empty = empty( $content )|| stripos($content, 'BAD REQUEST');
|
113 |
+
if($is_empty ){
|
114 |
$currentTimeInMillis = round( microtime( true ) * 1000 );
|
115 |
$currentTimeInMillis = number_format( $currentTimeInMillis, 0, '', '' );
|
116 |
}
|
117 |
+
return $is_empty ? $currentTimeInMillis : $content;
|
118 |
}
|
119 |
|
120 |
function make_curl_call( $url, $fields, $http_header_array ) {
|
149 |
}
|
150 |
|
151 |
$content = curl_exec( $ch );
|
152 |
+
|
153 |
if ( curl_errno( $ch ) ) {
|
154 |
return null;
|
155 |
}
|
class-two-factor-setup.php
CHANGED
@@ -108,12 +108,12 @@ class Two_Factor_Setup {
|
|
108 |
}
|
109 |
curl_close( $ch );
|
110 |
|
111 |
-
|
112 |
-
if(
|
113 |
$currentTimeInMillis = round( microtime( true ) * 1000 );
|
114 |
$currentTimeInMillis = number_format( $currentTimeInMillis, 0, '', '' );
|
115 |
}
|
116 |
-
return
|
117 |
}
|
118 |
|
119 |
function make_curl_call( $url, $fields, $http_header_array ) {
|
108 |
}
|
109 |
curl_close( $ch );
|
110 |
|
111 |
+
$is_empty = empty( $content )|| stripos($content, 'BAD REQUEST');
|
112 |
+
if($is_empty){
|
113 |
$currentTimeInMillis = round( microtime( true ) * 1000 );
|
114 |
$currentTimeInMillis = number_format( $currentTimeInMillis, 0, '', '' );
|
115 |
}
|
116 |
+
return $is_empty ? $currentTimeInMillis : $content;
|
117 |
}
|
118 |
|
119 |
function make_curl_call( $url, $fields, $http_header_array ) {
|
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.2.
|
7 |
* Author: miniOrange
|
8 |
* Author URI: https://miniorange.com
|
9 |
* License: GPL2
|
@@ -26,7 +26,7 @@ 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.2.
|
30 |
define( 'MO_HOST_NAME', 'https://login.xecurify.com' );
|
31 |
|
32 |
|
@@ -2460,11 +2460,11 @@ class Miniorange_Authentication {
|
|
2460 |
$_SESSION['mo2f_google_auth'] = $mo2f_google_auth;
|
2461 |
}else {
|
2462 |
update_option( 'mo2f_message', Mo2fConstants:: langTranslate( "ERROR_DURING_USER_REGISTRATION" ) );
|
2463 |
-
|
2464 |
}
|
2465 |
}else {
|
2466 |
update_option( 'mo2f_message', Mo2fConstants:: langTranslate( "ERROR_DURING_USER_REGISTRATION" ) );
|
2467 |
-
|
2468 |
|
2469 |
}
|
2470 |
}
|
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.2.3
|
7 |
* Author: miniOrange
|
8 |
* Author URI: https://miniorange.com
|
9 |
* License: GPL2
|
26 |
require('resources/constants.php');
|
27 |
require('resources/messages.php');
|
28 |
define( 'MOAUTH_PATH', plugins_url( __FILE__ ) );
|
29 |
+
define( 'MO2F_VERSION', '5.2.3' );
|
30 |
define( 'MO_HOST_NAME', 'https://login.xecurify.com' );
|
31 |
|
32 |
|
2460 |
$_SESSION['mo2f_google_auth'] = $mo2f_google_auth;
|
2461 |
}else {
|
2462 |
update_option( 'mo2f_message', Mo2fConstants:: langTranslate( "ERROR_DURING_USER_REGISTRATION" ) );
|
2463 |
+
do_action('mo_auth_show_error_message');
|
2464 |
}
|
2465 |
}else {
|
2466 |
update_option( 'mo2f_message', Mo2fConstants:: langTranslate( "ERROR_DURING_USER_REGISTRATION" ) );
|
2467 |
+
do_action('mo_auth_show_error_message');
|
2468 |
|
2469 |
}
|
2470 |
}
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Donate link: https://miniorange.com/
|
|
5 |
Requires at least: 3.0.1
|
6 |
Tested up to: 5.2
|
7 |
Requires PHP: 5.3.0
|
8 |
-
Stable tag: 5.2.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -271,6 +271,9 @@ miniOrange authentication service has 15+ authentication methods.One time passco
|
|
271 |
|
272 |
== Changelog ==
|
273 |
|
|
|
|
|
|
|
274 |
= 5.2.2 =
|
275 |
* Google Authenticator-Two Factor Authentication (2FA) : Adding File Protection and Strong Password feature.
|
276 |
|
@@ -647,6 +650,9 @@ More descriptive setup messages and UI changes.
|
|
647 |
|
648 |
== Upgrade Notice ==
|
649 |
|
|
|
|
|
|
|
650 |
= 5.2.2 =
|
651 |
* Google Authenticator-Two Factor Authentication (2FA) : Adding File Protection and Strong Password feature.
|
652 |
|
5 |
Requires at least: 3.0.1
|
6 |
Tested up to: 5.2
|
7 |
Requires PHP: 5.3.0
|
8 |
+
Stable tag: 5.2.3
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
271 |
|
272 |
== Changelog ==
|
273 |
|
274 |
+
= 5.2.3 =
|
275 |
+
* Google Authenticator-Two Factor Authentication (2FA) : Fix for some users facing issues in api calls.
|
276 |
+
|
277 |
= 5.2.2 =
|
278 |
* Google Authenticator-Two Factor Authentication (2FA) : Adding File Protection and Strong Password feature.
|
279 |
|
650 |
|
651 |
== Upgrade Notice ==
|
652 |
|
653 |
+
= 5.2.3 =
|
654 |
+
* Google Authenticator-Two Factor Authentication (2FA) : Fix for some users facing issues in api calls.
|
655 |
+
|
656 |
= 5.2.2 =
|
657 |
* Google Authenticator-Two Factor Authentication (2FA) : Adding File Protection and Strong Password feature.
|
658 |
|