Version Description
- Fix in flow of Registration in plugin (OTP not validated)
- Fix in sending email to admin
Download this release
Release Info
Developer | cyberlord92 |
Plugin | Social Login |
Version | 6.2.5 |
Comparing to | |
See all releases |
Code changes from version 6.2.4 to 6.2.5
- class-mo-openid-login-widget.php +1 -4
- class-mo-openid-sso-customer.php +6 -11
- miniorange_openid_sso_settings.php +1 -1
- readme.txt +9 -1
class-mo-openid-login-widget.php
CHANGED
@@ -2377,12 +2377,9 @@ if(mo_openid_is_customer_registered()) {
|
|
2377 |
$admin_mail = get_option('mo_openid_admin_email');
|
2378 |
$user_name = ($user_id == '') ? "##UserName##" : ($wpdb->get_var($wpdb->prepare("SELECT user_login FROM {$wpdb->users} WHERE ID = %d", $user_id)));
|
2379 |
$content = get_option('mo_openid_register_email_message');
|
2380 |
-
$from_mail = "no-reply@miniorange.com";
|
2381 |
$subject = "[" . get_bloginfo('name') . "] New User Registration - Social Login";
|
2382 |
-
|
2383 |
$content = str_replace('##User Name##', $user_name, $content);
|
2384 |
-
$headers = "
|
2385 |
-
$headers .= "Content-Type: text/html";
|
2386 |
wp_mail($admin_mail, $subject, $content, $headers);
|
2387 |
}
|
2388 |
}
|
2377 |
$admin_mail = get_option('mo_openid_admin_email');
|
2378 |
$user_name = ($user_id == '') ? "##UserName##" : ($wpdb->get_var($wpdb->prepare("SELECT user_login FROM {$wpdb->users} WHERE ID = %d", $user_id)));
|
2379 |
$content = get_option('mo_openid_register_email_message');
|
|
|
2380 |
$subject = "[" . get_bloginfo('name') . "] New User Registration - Social Login";
|
|
|
2381 |
$content = str_replace('##User Name##', $user_name, $content);
|
2382 |
+
$headers = "Content-Type: text/html";
|
|
|
2383 |
wp_mail($admin_mail, $subject, $content, $headers);
|
2384 |
}
|
2385 |
}
|
class-mo-openid-sso-customer.php
CHANGED
@@ -241,10 +241,9 @@ class CustomerOpenID {
|
|
241 |
$username = get_option('mo_openid_admin_email');
|
242 |
$phone = get_option('mo_openid_admin_phone');
|
243 |
/* Current time in milliseconds since midnight, January 1, 1970 UTC. */
|
244 |
-
|
245 |
-
|
246 |
/* Creating the Hash using SHA-512 algorithm */
|
247 |
-
$stringToHash = $customerKey . number_format($currentTimeInMillis, 0, '', '') . $apiKey;
|
248 |
$hashValue = hash("sha512", $stringToHash);
|
249 |
|
250 |
$customerKeyHeader = "Customer-Key: " . $customerKey;
|
@@ -287,10 +286,8 @@ class CustomerOpenID {
|
|
287 |
$username = get_option('mo_openid_admin_email');
|
288 |
|
289 |
/* Current time in milliseconds since midnight, January 1, 1970 UTC. */
|
290 |
-
|
291 |
-
|
292 |
-
/* Creating the Hash using SHA-512 algorithm */
|
293 |
-
$stringToHash = $customerKey . number_format($currentTimeInMillis, 0, '', '') . $apiKey;
|
294 |
$hashValue = hash("sha512", $stringToHash);
|
295 |
|
296 |
$customerKeyHeader = "Customer-Key: " . $customerKey;
|
@@ -383,10 +380,8 @@ class CustomerOpenID {
|
|
383 |
$apiKey = get_option('mo_openid_admin_api_key');
|
384 |
|
385 |
/* Current time in milliseconds since midnight, January 1, 1970 UTC. */
|
386 |
-
|
387 |
-
|
388 |
-
/* Creating the Hash using SHA-512 algorithm */
|
389 |
-
$stringToHash = $customerKey . number_format($currentTimeInMillis, 0, '', '') . $apiKey;
|
390 |
$hashValue = hash("sha512", $stringToHash);
|
391 |
|
392 |
$customerKeyHeader = "Customer-Key: " . $customerKey;
|
241 |
$username = get_option('mo_openid_admin_email');
|
242 |
$phone = get_option('mo_openid_admin_phone');
|
243 |
/* Current time in milliseconds since midnight, January 1, 1970 UTC. */
|
244 |
+
$currentTimeInMillis = self::get_timestamp();
|
245 |
+
$stringToHash = $customerKey . $currentTimeInMillis . $apiKey;
|
246 |
/* Creating the Hash using SHA-512 algorithm */
|
|
|
247 |
$hashValue = hash("sha512", $stringToHash);
|
248 |
|
249 |
$customerKeyHeader = "Customer-Key: " . $customerKey;
|
286 |
$username = get_option('mo_openid_admin_email');
|
287 |
|
288 |
/* Current time in milliseconds since midnight, January 1, 1970 UTC. */
|
289 |
+
$currentTimeInMillis = self::get_timestamp();
|
290 |
+
$stringToHash = $customerKey . $currentTimeInMillis . $apiKey;
|
|
|
|
|
291 |
$hashValue = hash("sha512", $stringToHash);
|
292 |
|
293 |
$customerKeyHeader = "Customer-Key: " . $customerKey;
|
380 |
$apiKey = get_option('mo_openid_admin_api_key');
|
381 |
|
382 |
/* Current time in milliseconds since midnight, January 1, 1970 UTC. */
|
383 |
+
$currentTimeInMillis = self::get_timestamp();
|
384 |
+
$stringToHash = $customerKey . $currentTimeInMillis . $apiKey;
|
|
|
|
|
385 |
$hashValue = hash("sha512", $stringToHash);
|
386 |
|
387 |
$customerKeyHeader = "Customer-Key: " . $customerKey;
|
miniorange_openid_sso_settings.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin Name: Social Login, Social Sharing by miniOrange
|
5 |
* Plugin URI: https://www.miniorange.com
|
6 |
* Description: Allow your users to login, comment and share with Facebook, Google, Twitter, LinkedIn etc using customizable buttons.
|
7 |
-
* Version: 6.2.
|
8 |
* Author: miniOrange
|
9 |
* Author URI: https://www.miniorange.com
|
10 |
* License: GPL2
|
4 |
* Plugin Name: Social Login, Social Sharing by miniOrange
|
5 |
* Plugin URI: https://www.miniorange.com
|
6 |
* Description: Allow your users to login, comment and share with Facebook, Google, Twitter, LinkedIn etc using customizable buttons.
|
7 |
+
* Version: 6.2.5
|
8 |
* Author: miniOrange
|
9 |
* Author URI: https://www.miniorange.com
|
10 |
* License: GPL2
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.miniorange.com
|
|
4 |
Tags: social login, social, facebook, twitter, login
|
5 |
Requires at least: 2.0.2
|
6 |
Tested up to: 4.9.4
|
7 |
-
Stable tag: 6.2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -166,6 +166,10 @@ Please email us at info@miniorange.com. You can also submit your query from the
|
|
166 |
|
167 |
|
168 |
== Changelog ==
|
|
|
|
|
|
|
|
|
169 |
= 6.2.4 =
|
170 |
* Fix in flow of Registration in plugin (OTP not received)
|
171 |
* Fixed minor warnings
|
@@ -469,6 +473,10 @@ Please email us at info@miniorange.com. You can also submit your query from the
|
|
469 |
* First version of Social Login, Social Sharing plugin.
|
470 |
|
471 |
== Upgrade Notice ==
|
|
|
|
|
|
|
|
|
472 |
= 6.2.4 =
|
473 |
* Fix in flow of Registration in plugin (OTP not received)
|
474 |
* Fixed minor warnings
|
4 |
Tags: social login, social, facebook, twitter, login
|
5 |
Requires at least: 2.0.2
|
6 |
Tested up to: 4.9.4
|
7 |
+
Stable tag: 6.2.5
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
166 |
|
167 |
|
168 |
== Changelog ==
|
169 |
+
= 6.2.5 =
|
170 |
+
* Fix in flow of Registration in plugin (OTP not validated)
|
171 |
+
* Fix in sending email to admin
|
172 |
+
|
173 |
= 6.2.4 =
|
174 |
* Fix in flow of Registration in plugin (OTP not received)
|
175 |
* Fixed minor warnings
|
473 |
* First version of Social Login, Social Sharing plugin.
|
474 |
|
475 |
== Upgrade Notice ==
|
476 |
+
= 6.2.5 =
|
477 |
+
* Fix in flow of Registration in plugin (OTP not validated)
|
478 |
+
* Fix in sending email to admin
|
479 |
+
|
480 |
= 6.2.4 =
|
481 |
* Fix in flow of Registration in plugin (OTP not received)
|
482 |
* Fixed minor warnings
|