Full profile + silent registration

Full profile + silent registration

Hello!
Thank you for this great component!

One question:
I use J 1.6 and JomSocial.
If I choose  pseudo profile, "silent" (one click) registration works fine, exactly how I want it.

My site has "autologin" plugin installed and we send to users some email-notifications with links like index.php?user=xxx&passw=xxx(md5) .
But "pseudo profile" users don't get password.
Is it somehow possible to generate random password and keep silent registration?

Thank You!

fb_1301949083
Alex
useravatar
Offline
3 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Full profile + silent registration

Alex,
Absolutely! To start, this code change won't create a 'pretty' password (that may be good) and the password won't be automatically emailed to the user, so they wouldn't be able to see it.. but if you know PHP, you can easily change this or come up with a way to email it to a user. Should you need more information on how to do it though, just let us know.

To make the change, and come up with a random password for a new user, you'll need to edit the /plugins/authentication/jfbconnectauth/jfbconnectauth.php file. Around line 140-150 (don't have it directly in front of me), you'll see the following line:

Code:

$user['password_clear'] = "";

Change that to:

Code:

$user['password_clear'] = substr(md5(time()), 0, 10);

This is a pretty random password in that it's taking the exact time (which shouldn't really be known), taking the MD5 of it, and then taking the first 10 characters and using it as the password. Again.. pretty secure, but if you're running a bank, please come up with something else.

I haven't tested the change above at all, so please do.. and let us know your results! Hopefully, this will be all you need, but if not, you know where to find us.

Alex

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
24100 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Full profile + silent registration

Thank You very much.

Probably I need to change line 208 from

Code:

$instance->set('password_clear', $user['password_clear']);

to

Code:

$instance->set('password', $user['password_clear']);

as well. current/smile

It works, and it is all what I need.
Thanks again for your product and great support.

fb_1301949083
Alex
useravatar
Offline
3 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Full profile + silent registration

You shouldn't need to change that code at the bottom. The $user variable is what I had you set (above) with the password, and then it's passed into that function.. won't hurt to have it there, but it's really only necessary in one of the 2 places.

Glad that worked, and no problem for the support. It's what we do, and thank you for your subscription! Should you need anything else, just let us know, and good luck!
Alex

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
24100 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Full profile + silent registration

Alex, sorry, but it doesn't work if I don't change! current/smile

This is original code:


Code:

$instance->set('id', 0);

        $instance->set('name', $user['fullname']);
        $instance->set('username', $user['username']);
        $instance->set('password_clear', $user['password_clear']);
        $instance->set('email', $user['email']); // Result should contain an email (check)
        $instance->set('usertype', 'deprecated');
        $instance->set('groups', array($defaultUserGroup));

Have a look again. current/smile

fb_1301949083
Alex
useravatar
Offline
3 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Full profile + silent registration

Looked again, still not sure why that's required, but frankly, if you got it going.. stick with it. I'll keep investigating as well current/smile

We do have a plan for a future release (likely not for a few months) to have the option to auto-generate and email the password to users with a customizeable message "You can now log in with Facebook or this user account: username: xxx, password: yyy".. Until then though, please make sure that when you upgrade JFBConnect, you'll need to make this change again.

Finally, please consider leaving a rating and review on the Joomla Extension Directory for JFBConnect and/or our support:
http://extensions.joomla.org/extensions … ation/7215

Thanks, and best of luck to you and your site,
Alex

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
24100 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.
There are 0 guests also viewing this topic
There are 0 users also viewing this topic

Board Info

Board Stats
 
Total Topics:
11662
Total Polls:
0
Total Posts:
48978
Posts today:
6
User Info
 
Total Users:
47788
Newest User:
oliverpreissner
Members Online:
0
Guests Online:
810

Online: 
There are no members online
Social Stream
Refer and Earn

Like our extensions? You're not alone! That's why they're used on tens of thousands of websites. Now you can earn 20% of any sale you refer to SourceCoast.com.

We provide excellent documentation, well laid out sales pages and great support. All you need to do is spread the word and we'll take care of the rest.

Learn About Our Affiliate Program