Support

  1. krnsgrffn
  2. Support
  3. Wednesday, September 02 2020, 03:38 PM
I am using "Allow Duplicate Emails" on a site so that users using the same email addresses can register as separate users. With Easy Profile enabled, this works when adding a user on the back end, but not when a user registers on the front-end. I did note the error thrown uses Joomla's error language.

When Easy Profile is disabled, and I am only using com_users, I can register users on the back end and front end with duplicate emails. This tells me that Easy Profile does not use the same check as com_users on the front end. Can you please tell me where Easy Profile does this check for registration on the front end? I would like to be able to extend "Allow Duplicate Emails" to include Easy Profile, but for the life of me, I cannot find the code Easy Profile uses when I do a search for it.

Thanks.
krnsgrffn Accepted Answer
Pro
taking out the unique="true" worked.
  1. more than a month ago
  2. Support
  3. # 1
krnsgrffn Accepted Answer
Pro
In Joomla version 3.8 and above, Allow Duplicate Emails literally replaces the core file /libraries/src/Table/User.php, which is what com_users uses to check for duplicate emails, with a version that has the check commented out, so the timing of the check has nothing to do with it. Easy Profile is not using the same check as com_users on the front end.
  1. more than a month ago
  2. Support
  3. # 2
admin Accepted Answer
Admin
Hi,
unfortunately Easy Profile is not compatible with this plugin.

This tells me that Easy Profile does not use the same check as com_users on the front end.
Easy Profile extends Joomla user management (not replace it), so the check is the same of Joomla.
Both Easy Profile and "Allow Duplicate Emails" manipulate the Joomla form, but Easy Profile do this in the Joomla event called "onContentPrepareForm" instead "Allow Duplicate Emails" in the Joomla event "onAfterInitialise".
"onContentPrepareForm" is a event dedicated to manipulate Joomla Forms (not only user registration)
The event "onContentPrepareForm" is called after event "onAfterInitialise", so the last plugin triggered is Easy Profile.
Among the 2 the one that best uses Joomla events is definitely Easy Profile.

Why "Allow Duplicate Emails" uses "onAfterInitialise" event? Because this plugin need to use this event to keep compatibility with older Joomla versions.

I cannot find the code Easy Profile uses when I do a search for it.
I don't know if this modification will works but you can try to remove following code to file /administrator/components/com_jsn/helpers/fields/usermail.php at line 48:
unique="true"
  1. more than a month ago
  2. Support
  3. # 3
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.

Request Support

Support is currently Offline

Support Availability

Working days: Monday to Friday. The support staff is not available on weekends; in the most of cases tickets will not be answered during that time.

Reply time: Depending on the complexity of your support issue it's usually between a few minutes and 24 hours for paid members and about one week for free members. When we expect longer delays we will notify you.

Guidelines

Before you post: read the documentation and search the forums for an answer to your question.

When you post: include Site Details if you request a support (you can use the form below the reply in Site Details tab).

Auto Solved Question: If after a week the author of the post does not reply to a request by moderator, the question will be marked as resolved.

Language: only English

Search Users

Easy Profile® is not affiliated with or endorsed by Open Source Matters or the Joomla Project. Joomla is Free Software released under the GNU/GPL License.