Topic-icon JFBConnect + Easysocial profile link displays email elements

Active Subscriptions:

None
Hello,

I am using JFBconnect with easysocial as registration component and username is email. Currently if I register as This email address is being protected from spambots. You need JavaScript enabled to view it., my Easysocial profile link is set to mysite.com/profile/id-xyz-gmail-com
Since any user can see this and make out the email address easily, this is a security concern for me. It seems that the Easysocial setting to use username / Real name in profile url isnt applicable when I use ES with Jfbconnect. It seems JFBconnect saves user alias based on it's username setting. PFA.

What can I do to use email as username and use real name in profile url?

Thanks!
File Attachment:


File Attachment:
The topic has been locked.
Support Specialist
That's not an issue we've heard of before and will have to investigate further. JFBConnect doesn't actually set the alias for the user's profile. We leave it to EasySocial to automatically set. We can look into setting that value though and see if there's a proper way to do it so that it doesn't expose the user's email address.

To do proper testing, can you let us know:
* The exact EasySocial settings you have around usernames? We test with ES, but don't use it every day, so I'm not familiar with every possible setting you may have configured.
* Your settings for Enable Automatic Registration and Registration Component in JFBConnect -> Configuration area

Once we have the details, we can try some tests and investigate further. It may take a few days, but we'll let you know what we find.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
Thanks Alex!

PFA.
File Attachment:


File Attachment:


File Attachment:
The topic has been locked.
Support Specialist
7 years 10 months ago #58694 by mel
We were able to reproduce this issue on a test site and have a potential fix. Could you try the following code change to see if this helps?

In plugins/socialprofiles/easysocial/easysocial.php after line 363, add the two lines of code so it looks like this:
$esUser = Foundry::user($this->joomlaId);
$esUser->alias='';
$esUser->save();

Can you test it and let us know if this helps resolve your issue? We intend to include a fix for this issue in the next release.

-Melissa
The topic has been locked.
Active Subscriptions:

None
Hello Melissa,

I added the code and registered using a new email id. But for the user too, profile url contains email elements. Let me know if I can try anything else.

Also let me know is there any way to change the aliases set for the old user, as I assume whatever code changes you suggest now, will apply to the new registrations only.
The topic has been locked.
Support Specialist
We tested on our development site and when the alias was blank, the SEF URL returned used the user's full name. Are you still seeing the same format of the email being used, or something different?

Also let me know is there any way to change the aliases set for the old user, as I assume whatever code changes you suggest now, will apply to the new registrations only.

Correct. This will only fix future registrations. I'm not sure how that alias field is supposed to be set normally. I don't see any option in the admin area or the user profile area for a user to update that, so I'm assuming it should always be blank. If that's the case, I'd recommend running a SQL query, like:
UPDATE jos_social_users SET alias = ""
Or, do it per user, like:
UPDATE jos_social_users SET alias = "" WHERE user_id = 123
I hope that helps, but if you need anything else, please let us know.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
HI Melissa,

I could get it to work.. Thanks! That, along with the query to clear aliases, seems to have resolved the issue.
The topic has been locked.
Support Specialist
7 years 9 months ago #58777 by mel
Great! Thank you for letting us know. I've checked in the code change to be included in the next release.
The topic has been locked.