Version Description
- Done the modification of the callBackUrl function to work with custom login url.
- Fixed the issue appearing for the database insert error due to gender input field.
Download this release
Release Info
Developer | Access Keys |
Plugin | Social Login WordPress Plugin – AccessPress Social Login Lite |
Version | 3.2.6 |
Comparing to | |
See all releases |
Code changes from version 3.2.5 to 3.2.6
- accesspress-social-login-lite.php +2 -2
- inc/frontend/login_check.php +4 -9
- readme.txt +5 -1
accesspress-social-login-lite.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin name: Social Login WordPress Plugin - AccessPress Social Login Lite
|
4 |
Plugin URI: https://accesspressthemes.com/wordpress-plugins/accesspress-social-login-lite/
|
5 |
Description: A plugin to add various social logins to a site.
|
6 |
-
version: 3.2.
|
7 |
Author: AccessPress Themes
|
8 |
Author URI: https://accesspressthemes.com/
|
9 |
Text Domain: accesspress-social-login-lite
|
@@ -12,7 +12,7 @@
|
|
12 |
*/
|
13 |
//Declearation of the necessary constants for plugin
|
14 |
if( !defined( 'APSL_VERSION' ) ) {
|
15 |
-
define( 'APSL_VERSION', '3.2.
|
16 |
}
|
17 |
|
18 |
if( !defined( 'APSL_IMAGE_DIR' ) ) {
|
3 |
Plugin name: Social Login WordPress Plugin - AccessPress Social Login Lite
|
4 |
Plugin URI: https://accesspressthemes.com/wordpress-plugins/accesspress-social-login-lite/
|
5 |
Description: A plugin to add various social logins to a site.
|
6 |
+
version: 3.2.6
|
7 |
Author: AccessPress Themes
|
8 |
Author URI: https://accesspressthemes.com/
|
9 |
Text Domain: accesspress-social-login-lite
|
12 |
*/
|
13 |
//Declearation of the necessary constants for plugin
|
14 |
if( !defined( 'APSL_VERSION' ) ) {
|
15 |
+
define( 'APSL_VERSION', '3.2.6' );
|
16 |
}
|
17 |
|
18 |
if( !defined( 'APSL_IMAGE_DIR' ) ) {
|
inc/frontend/login_check.php
CHANGED
@@ -204,7 +204,7 @@ if( !class_exists( 'APSL_Lite_Login_Check_Class' ) ) {
|
|
204 |
}
|
205 |
$return_user_details->email = $user_email;
|
206 |
$return_user_details->username = ($user_profile['first_name'] !='') ? strtolower( $user_profile['first_name'] ) : $user_email;
|
207 |
-
$return_user_details->gender = $user_profile['gender'];
|
208 |
$return_user_details->url = $user_profile['link'];
|
209 |
$return_user_details->about = ''; //facebook doesn't return user about details.
|
210 |
$headers = get_headers( 'https://graph.facebook.com/' . $user_profile['id'] . '/picture?width='.$width.'&height='.$height, 1 );
|
@@ -512,7 +512,7 @@ if( !class_exists( 'APSL_Lite_Login_Check_Class' ) ) {
|
|
512 |
$response->last_name = $user->name->familyName;
|
513 |
$response->deuid = $user->emails[0]->value;
|
514 |
$response->deuimage = $user->image->url;
|
515 |
-
$response->gender = $user->gender;
|
516 |
$response->id = $user->id;
|
517 |
$response->about = $user->aboutMe;
|
518 |
$response->url = $user->url;
|
@@ -532,11 +532,6 @@ if( !class_exists( 'APSL_Lite_Login_Check_Class' ) ) {
|
|
532 |
$response->error_message = "INVALID AUTHORIZATION";
|
533 |
}
|
534 |
}
|
535 |
-
elseif( $get['openid_mode'] == 'cancel' ) { // User Canceled your Request
|
536 |
-
$response->status = 'ERROR';
|
537 |
-
$response->error_code = 1;
|
538 |
-
$response->error_message = "USER CANCELED REQUEST";
|
539 |
-
}
|
540 |
else { // User failed to login
|
541 |
$response->status = 'ERROR';
|
542 |
$response->error_code = 3;
|
@@ -550,8 +545,8 @@ if( !class_exists( 'APSL_Lite_Login_Check_Class' ) ) {
|
|
550 |
}
|
551 |
|
552 |
function callBackUrl() {
|
553 |
-
$connection = !empty( $_SERVER['HTTPS'] ) ? 'https://' : 'http://';
|
554 |
-
$url =
|
555 |
if( strpos( $url, '?' ) === false ) {
|
556 |
$url.= '?';
|
557 |
}
|
204 |
}
|
205 |
$return_user_details->email = $user_email;
|
206 |
$return_user_details->username = ($user_profile['first_name'] !='') ? strtolower( $user_profile['first_name'] ) : $user_email;
|
207 |
+
$return_user_details->gender = isset($user_profile['gender']) ? $user_profile['gender'] : 'N/A';
|
208 |
$return_user_details->url = $user_profile['link'];
|
209 |
$return_user_details->about = ''; //facebook doesn't return user about details.
|
210 |
$headers = get_headers( 'https://graph.facebook.com/' . $user_profile['id'] . '/picture?width='.$width.'&height='.$height, 1 );
|
512 |
$response->last_name = $user->name->familyName;
|
513 |
$response->deuid = $user->emails[0]->value;
|
514 |
$response->deuimage = $user->image->url;
|
515 |
+
$response->gender = isset($user->gender) ? $user->gender : 'N/A';
|
516 |
$response->id = $user->id;
|
517 |
$response->about = $user->aboutMe;
|
518 |
$response->url = $user->url;
|
532 |
$response->error_message = "INVALID AUTHORIZATION";
|
533 |
}
|
534 |
}
|
|
|
|
|
|
|
|
|
|
|
535 |
else { // User failed to login
|
536 |
$response->status = 'ERROR';
|
537 |
$response->error_code = 3;
|
545 |
}
|
546 |
|
547 |
function callBackUrl() {
|
548 |
+
// $connection = !empty( $_SERVER['HTTPS'] ) ? 'https://' : 'http://';
|
549 |
+
$url = wp_login_url();
|
550 |
if( strpos( $url, '?' ) === false ) {
|
551 |
$url.= '?';
|
552 |
}
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: social, login, social login, facebook, twitter, google, social connect, s
|
|
4 |
Donate link: http://accesspressthemes.com/donation/
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 4.7
|
7 |
-
Stable tag: 3.2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -137,6 +137,10 @@ Yes. You can use the AccessPress social login lite anywhere by using shortcode i
|
|
137 |
4. Backend Other settings Section.
|
138 |
|
139 |
== Changelog ==
|
|
|
|
|
|
|
|
|
140 |
= 3.2.5 =
|
141 |
* Fixed the display of the error message when user deny the authorization of the app for login.
|
142 |
|
4 |
Donate link: http://accesspressthemes.com/donation/
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 4.7
|
7 |
+
Stable tag: 3.2.6
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
137 |
4. Backend Other settings Section.
|
138 |
|
139 |
== Changelog ==
|
140 |
+
= 3.2.6 =
|
141 |
+
* Done the modification of the callBackUrl function to work with custom login url.
|
142 |
+
* Fixed the issue appearing for the database insert error due to gender input field.
|
143 |
+
|
144 |
= 3.2.5 =
|
145 |
* Fixed the display of the error message when user deny the authorization of the app for login.
|
146 |
|