Version Description
- Now our plugin can fetch the twitter user's email address while doing social login using twitter(applicable for new user login only).
- Fixed the google login issue if the user don't have google+ account.
Download this release
Release Info
Developer | Access Keys |
Plugin | Social Login WordPress Plugin – AccessPress Social Login Lite |
Version | 3.2.4 |
Comparing to | |
See all releases |
Code changes from version 3.2.3 to 3.2.4
- accesspress-social-login-lite.php +2 -2
- inc/backend/main-page.php +1 -0
- inc/frontend/login_check.php +9 -3
- 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.4
|
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.4' );
|
16 |
}
|
17 |
|
18 |
if( !defined( 'APSL_IMAGE_DIR' ) ) {
|
inc/backend/main-page.php
CHANGED
@@ -165,6 +165,7 @@
|
|
165 |
<li>After successful creation of the app. Please go to "Keys and Access Tokens" tabs and get Consumer key(API Key) and Consumer secret(API secret).</li>
|
166 |
<li>Website: <input type='text' value='<?php echo site_url(); ?>' readonly='readonly'/></li>
|
167 |
<li>Callback URL: <input type='text' value='<?php echo site_url(); ?>' readonly='readonly'/></li>
|
|
|
168 |
</ul>
|
169 |
|
170 |
</div>
|
165 |
<li>After successful creation of the app. Please go to "Keys and Access Tokens" tabs and get Consumer key(API Key) and Consumer secret(API secret).</li>
|
166 |
<li>Website: <input type='text' value='<?php echo site_url(); ?>' readonly='readonly'/></li>
|
167 |
<li>Callback URL: <input type='text' value='<?php echo site_url(); ?>' readonly='readonly'/></li>
|
168 |
+
<li><strong>Note: </strong>To get the user's email address please go to app's permission tab and in additional Permissions there you will find a checkbox to request for user email address. Please enable it. To enable it you need to enter privacy policy url and terms of service url.</li>
|
169 |
</ul>
|
170 |
|
171 |
</div>
|
inc/frontend/login_check.php
CHANGED
@@ -325,7 +325,13 @@ if( !class_exists( 'APSL_Lite_Login_Check_Class' ) ) {
|
|
325 |
$access_token = $twitterObj->getAccessToken( $request['oauth_verifier'] );
|
326 |
/* If HTTP response is 200 continue otherwise send to connect page to retry */
|
327 |
if( 200 == $twitterObj->http_code ) {
|
328 |
-
$user_profile = $twitterObj->get( '
|
|
|
|
|
|
|
|
|
|
|
|
|
329 |
/* Request access twitterObj from twitter */
|
330 |
$response->status = 'SUCCESS';
|
331 |
$response->deuid = $user_profile->id;
|
@@ -334,7 +340,7 @@ if( !class_exists( 'APSL_Lite_Login_Check_Class' ) ) {
|
|
334 |
$response->first_name = $response->name[0];
|
335 |
$response->last_name =( isset( $response->name[1] ) ) ? $response->name[1] : '';
|
336 |
$response->deuimage = $user_profile->profile_image_url_https;
|
337 |
-
$response->email = $user_profile->screen_name . '@twitter.com';
|
338 |
$response->username = ($user_profile->screen_name !='') ? strtolower($user_profile->screen_name) : $user_email;
|
339 |
$response->url = $user_profile->url;
|
340 |
$response->about = isset($user_profile->description) ? $user_profile->description : '';
|
@@ -431,7 +437,7 @@ if( !class_exists( 'APSL_Lite_Login_Check_Class' ) ) {
|
|
431 |
$client->setClientId( $client_id );
|
432 |
$client->setClientSecret( $client_secret );
|
433 |
$client->setRedirectUri( $redirect_uri );
|
434 |
-
$client->addScope( "https://www.googleapis.com/auth/plus.profile.emails.read" );
|
435 |
if( isset( $encoded_url ) && $encoded_url != '' ) {
|
436 |
$client->setState( base64_encode( "redirect_to=$encoded_url" ) );
|
437 |
}
|
325 |
$access_token = $twitterObj->getAccessToken( $request['oauth_verifier'] );
|
326 |
/* If HTTP response is 200 continue otherwise send to connect page to retry */
|
327 |
if( 200 == $twitterObj->http_code ) {
|
328 |
+
$user_profile = $twitterObj->get( 'account/verify_credentials', array(
|
329 |
+
'screen_name' => $access_token['screen_name'],
|
330 |
+
'skip_status' => 'true',
|
331 |
+
'include_entities' => 'true',
|
332 |
+
'include_email' => 'true'
|
333 |
+
)
|
334 |
+
);
|
335 |
/* Request access twitterObj from twitter */
|
336 |
$response->status = 'SUCCESS';
|
337 |
$response->deuid = $user_profile->id;
|
340 |
$response->first_name = $response->name[0];
|
341 |
$response->last_name =( isset( $response->name[1] ) ) ? $response->name[1] : '';
|
342 |
$response->deuimage = $user_profile->profile_image_url_https;
|
343 |
+
$response->email = isset($user_profile->email) ? $user_profile->email : $user_profile->screen_name . '@twitter.com';
|
344 |
$response->username = ($user_profile->screen_name !='') ? strtolower($user_profile->screen_name) : $user_email;
|
345 |
$response->url = $user_profile->url;
|
346 |
$response->about = isset($user_profile->description) ? $user_profile->description : '';
|
437 |
$client->setClientId( $client_id );
|
438 |
$client->setClientSecret( $client_secret );
|
439 |
$client->setRedirectUri( $redirect_uri );
|
440 |
+
$client->addScope( "https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/plus.profile.emails.read" );
|
441 |
if( isset( $encoded_url ) && $encoded_url != '' ) {
|
442 |
$client->setState( base64_encode( "redirect_to=$encoded_url" ) );
|
443 |
}
|
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.3 =
|
141 |
* Added the check for the username and if username is empty user email address will be used as username.
|
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.4
|
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.4 =
|
141 |
+
* Now our plugin can fetch the twitter user's email address while doing social login using twitter(applicable for new user login only).
|
142 |
+
* Fixed the google login issue if the user don't have google+ account.
|
143 |
+
|
144 |
= 3.2.3 =
|
145 |
* Added the check for the username and if username is empty user email address will be used as username.
|
146 |
|