Email verification on registration

  • Kenneth Kjær Nielsen
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 16 hours ago #41174 by Kenneth Kjær Nielsen
Email verification on registration was created by Kenneth Kjær Nielsen
Hey :)

Where do i find the regexp for email verification when some one signs up for a event? Iam from Denmark, and i need the email form to accept characters, like: æøå@æåø.com :S

I hope some one can help me!

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

More
12 years 9 hours ago #41181 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Email verification on registration
Hi

To be honest, I don't have much experience with regular expression, so I could not give you the solution in this case. I can only tell you the location of the file and what regex is using at the moment :

1. File location : components/com_eventbooking/views/register/tmpl/default.php

2. var emailFilter = /^\w+[\+\.\w-]*@([\w-]+\.)*\w+[\w-]*\.([a-z]{2,4}|\d+)$/i

So please try to find the correct regular expression and try to solve it.

Regards,

Tuan
The following user(s) said Thank You: Kenneth Kjær Nielsen

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

  • Kenneth Kjær Nielsen
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 4 hours ago #41205 by Kenneth Kjær Nielsen
Replied by Kenneth Kjær Nielsen on topic Re: Email verification on registration
Hey! :)
Thank you, again! :woohoo:
In standard Joomla the regexp for email verification is located at libaries/joomla/form/rules/mail.php, so i thought it was the same path.

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

More
11 years 11 months ago #41260 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Email verification on registration
OK, great ! Good luck and if you find the regex which works for you, please share it here so that in case someone needs it, they can use it.

Regards,

Tuan

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

  • Kenneth Kjær Nielsen
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 11 months ago #41270 by Kenneth Kjær Nielsen
Replied by Kenneth Kjær Nielsen on topic Re: Email verification on registration
Here you go:
Code:
'^[ÆØÅæøåA-Za-z0-9._%+-]+@(?:[ÆØÅæøåA-Za-z0-9-]+\.)+[A-Za-z]{2,6}$';
:)

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

More
11 years 11 months ago #41307 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Email verification on registration
Great. Thanks for sharing :).

Tuan

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

Moderators: Tuan Pham Ngoc