email validation rule (domain)

  • Ezequiel Lidijover
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 3 weeks ago #142641 by Ezequiel Lidijover
email validation rule (domain) was created by Ezequiel Lidijover
Hello, it is possible to add a validation rule to the mail field so that they can only belong to a domain eg: john@pepepe.com that way only people who have institutional emails "@ pepepe.com" can be registered
If so, what would be the rule or way of doing it?

Please Log in or Create an account to join the conversation.

More
3 years 3 weeks ago #142646 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic email validation rule (domain)
Hello

You would have to write a server validation rule and set it for the email field. See membershipprodoc.joomservices.com/basic-...eld-data-server-side

Regards,

Tuan

Please Log in or Create an account to join the conversation.

  • Ezequiel Lidijover
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 3 weeks ago #142654 by Ezequiel Lidijover
Replied by Ezequiel Lidijover on topic email validation rule (domain)
I don't know how to do that, could I ask you to do it through a ticket?

Please Log in or Create an account to join the conversation.

More
3 years 3 weeks ago #142659 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic email validation rule (domain)
Hello
Normally, code modification like this is not in scope of support. I worked on quick modification for you. You can get this file, unzip it, upload to folder components/com_osmembership/helper folder on your site

After that, edit the email field, set Server Validation Rules to email_pepepe, then try again. It should work 

Regards,

Tuan
Attachments:

Please Log in or Create an account to join the conversation.

More
1 year 7 months ago #153895 by Jonathan Colls
Replied by Jonathan Colls on topic email validation rule (domain)
I would like to do something similar by only allowing access to a number of educational domains for certain plans.

However I use the email address as the Username setting so wondered if this add on validation would work with that situation - or would it apply to all plans?

Please Log in or Create an account to join the conversation.

More
1 year 6 months ago #153897 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic email validation rule (domain)
Hi Jonathan

The rule there will be applied to all plans, not with certain selected plans

Regards,

Tuan
The following user(s) said Thank You: Jonathan Colls

Please Log in or Create an account to join the conversation.