Version Description
- Done the modification of plugin to set the username to firstname.
Download this release
Release Info
Developer | Access Keys |
Plugin | Social Login WordPress Plugin – AccessPress Social Login Lite |
Version | 3.0.7 |
Comparing to | |
See all releases |
Code changes from version 3.0.6 to 3.0.7
- accesspress-social-login-lite.php +3 -2
- inc/frontend/login_check.php +13 -3
- readme.txt +4 -1
accesspress-social-login-lite.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin name: 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.0.
|
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.0.
|
16 |
}
|
17 |
|
18 |
if( !defined( 'APSL_IMAGE_DIR' ) ) {
|
@@ -47,6 +47,7 @@ if( !defined( 'APSL_PLUGIN_DIR' ) ) {
|
|
47 |
*
|
48 |
*/
|
49 |
include_once( 'inc/backend/widget.php' );
|
|
|
50 |
// Redefine user notification function
|
51 |
if ( !function_exists('wp_new_user_notification') ) {
|
52 |
|
3 |
Plugin name: 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.0.7
|
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.0.7' );
|
16 |
}
|
17 |
|
18 |
if( !defined( 'APSL_IMAGE_DIR' ) ) {
|
47 |
*
|
48 |
*/
|
49 |
include_once( 'inc/backend/widget.php' );
|
50 |
+
|
51 |
// Redefine user notification function
|
52 |
if ( !function_exists('wp_new_user_notification') ) {
|
53 |
|
inc/frontend/login_check.php
CHANGED
@@ -157,7 +157,7 @@ if( !class_exists( 'APSL_Lite_Login_Check_Class' ) ) {
|
|
157 |
$return_user_details->first_name = $user_profile['first_name'];
|
158 |
$return_user_details->last_name = $user_profile['last_name'];
|
159 |
$return_user_details->email = $user_profile['email'];
|
160 |
-
$return_user_details->username = $user_profile['
|
161 |
$return_user_details->gender = $user_profile['gender'];
|
162 |
$return_user_details->url = $user_profile['link'];
|
163 |
$return_user_details->about = ''; //facebook doesn't return user about details.
|
@@ -283,7 +283,7 @@ if( !class_exists( 'APSL_Lite_Login_Check_Class' ) ) {
|
|
283 |
$response->last_name =( isset( $response->name[1] ) ) ? $response->name[1] : '';
|
284 |
$response->deuimage = $user_profile->profile_image_url_https;
|
285 |
$response->email = $user_profile->screen_name . '@twitter.com';
|
286 |
-
$response->username = $user_profile->screen_name
|
287 |
$response->url = $user_profile->url;
|
288 |
$response->about = $user_profile->description;
|
289 |
$response->gender = $user_profile->gender;
|
@@ -394,7 +394,7 @@ if( !class_exists( 'APSL_Lite_Login_Check_Class' ) ) {
|
|
394 |
if( !empty( $user ) ) {
|
395 |
if( !empty( $user->emails ) ) {
|
396 |
$response->email = $user->emails[0]->value;
|
397 |
-
$response->username = $user->
|
398 |
$response->first_name = $user->name->givenName;
|
399 |
$response->last_name = $user->name->familyName;
|
400 |
$response->deuid = $user->emails[0]->value;
|
@@ -465,6 +465,16 @@ if( !class_exists( 'APSL_Lite_Login_Check_Class' ) ) {
|
|
465 |
}
|
466 |
exit;
|
467 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
468 |
|
469 |
function updateUser( $username, $email ) {
|
470 |
$row = $this->getUserByUsername( $username );
|
157 |
$return_user_details->first_name = $user_profile['first_name'];
|
158 |
$return_user_details->last_name = $user_profile['last_name'];
|
159 |
$return_user_details->email = $user_profile['email'];
|
160 |
+
$return_user_details->username = strtolower( $user_profile['first_name'] );
|
161 |
$return_user_details->gender = $user_profile['gender'];
|
162 |
$return_user_details->url = $user_profile['link'];
|
163 |
$return_user_details->about = ''; //facebook doesn't return user about details.
|
283 |
$response->last_name =( isset( $response->name[1] ) ) ? $response->name[1] : '';
|
284 |
$response->deuimage = $user_profile->profile_image_url_https;
|
285 |
$response->email = $user_profile->screen_name . '@twitter.com';
|
286 |
+
$response->username = strtolower($user_profile->screen_name);
|
287 |
$response->url = $user_profile->url;
|
288 |
$response->about = $user_profile->description;
|
289 |
$response->gender = $user_profile->gender;
|
394 |
if( !empty( $user ) ) {
|
395 |
if( !empty( $user->emails ) ) {
|
396 |
$response->email = $user->emails[0]->value;
|
397 |
+
$response->username = strtolower($user->name->givenName);
|
398 |
$response->first_name = $user->name->givenName;
|
399 |
$response->last_name = $user->name->familyName;
|
400 |
$response->deuid = $user->emails[0]->value;
|
465 |
}
|
466 |
exit;
|
467 |
}
|
468 |
+
|
469 |
+
static function get_username($user_name){
|
470 |
+
$username = $user_name;
|
471 |
+
$i = 1;
|
472 |
+
while(username_exists( $username )){
|
473 |
+
$username = $user_name.'_'.$i;
|
474 |
+
$i++;
|
475 |
+
}
|
476 |
+
return $username;
|
477 |
+
}
|
478 |
|
479 |
function updateUser( $username, $email ) {
|
480 |
$row = $this->getUserByUsername( $username );
|
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.3
|
7 |
-
Stable tag: 3.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -131,6 +131,9 @@ Yes. You can use the AccessPress social login lite anywhere by using shortcode i
|
|
131 |
4. Backend Other settings Section.
|
132 |
|
133 |
== Changelog ==
|
|
|
|
|
|
|
134 |
= 3.0.6 =
|
135 |
* Done the text modifications in the about section.
|
136 |
* Removed unnecessary comments in the frontend display.
|
4 |
Donate link: http://accesspressthemes.com/donation/
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 4.3
|
7 |
+
Stable tag: 3.0.7
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
131 |
4. Backend Other settings Section.
|
132 |
|
133 |
== Changelog ==
|
134 |
+
= 3.0.7 =
|
135 |
+
* Done the modification of plugin to set the username to firstname.
|
136 |
+
|
137 |
= 3.0.6 =
|
138 |
* Done the text modifications in the about section.
|
139 |
* Removed unnecessary comments in the frontend display.
|