adding a new user to specific group

Permalink Browser Info Environment
Hi Hanicker

I like facebook connect but wasn't able to find out where you are adding the new registered user to admin group.

I want these users to be connected to another group and I would also like that users can add info about themselves and that required info is pulled from facebook account (full name not only as username but also in custom attribute Full_name)

Also - is it possible to support email address login in case people are not at their home computer and not logged in to facebook?

Thanks

Type: Discussion
Status: New
shotrox
View Replies:
hanicker replied on at Permalink Reply
hanicker
Hi, I just granted you a free license for social login that is much easier to modify than Facebook Connect.

In Facebook connect all the logic is inside facebook_connect\blocks\facebookconnect_connect\controller.php
line ~121
$data['uName'] = $this->findUniqueUsername($user['name']);
                  $data['uPassword'] = $this->getRandomPassword();
                  $data['uEmail'] = $fql_info[0]['email'];
                  $data['uIsValidated'] = '1';
                  $ui = UserInfo::add($data);
                  $ui->setAttribute('oauth_facebook_uid',$user['id']);
                  $cuid=$ui->uID;


In Social Login, instead, everything is in
social_login\models\social_login.php

~line 528
$data['uName'] = SocialLoginModel::findUniqueUsername($uname);
ecc..

you can add there more fields present in $user_profile array.

You can then change
Loader::helper('navigation');
                     header('Location: '.NavigationHelper::getLinkToCollection($currentPage, true));
                     die();

To redirect user to his profile where he can add more information.

Users receive a pwd after registration (if enabled in the dashboard) so that they can login with email.

Let me know if you have any other question
Hope this helps
Regards
Nick
shotrox replied on at Permalink Reply
shotrox

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.