How to solve the problem of validating email address during registrat

Hello,

I do not know if you know the registration page does not properly validate addresses email.

It does not validate the extension so it allows an email address as "my_email@example"

To resolve this problem you must go to the Admin Panel Dolphin then Builders  -> Profile Fields -> Emai l-> Advanced -> Check and change the Regex

return (bool) preg_match('/^([a-z0-9\+\_\-\.]+)@([a-z0-9\+\_\-\.]+)$/i', $arg0);

with

return (bool) preg_match('/^([a-z0-9\+\_\-\.]+)@([a-z0-9\+\_\-\.]{2,})(\.[a-z]{2,4})$/i', $arg0);

or simply with PHP filter

return (bool) filter_var($arg0, FILTER_VALIDATE_EMAIL);

 

Now it will properly validate email address

P.S. It would still BoonEx that fixes this bug.

 

 

Free Dating Site on: http://coolonweb.com
Quote · 8 Oct 2011
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.