LMS

Welcome to the Lobeo Module Server project. Please feel free to submit bugs related to it.
Tasklist

FS#773 - [MS] Verify client side the entered email is correct when signing up

Attached to Project: LMS
Opened by Ferdinand (PaGaisu) - Thursday, 06 February 2014, 16:32 GMT+2
Task Type Feature Request
Category
Status New
Assigned To Guillaume (Guillaume)
Operating System All
Severity Low
Priority Normal
Reported Version alpha6
Due in Version alpha7
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

Verify client side the entered email is correct when signing up

pattern:
var ck_email = /^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;

js:
var email="foo@bar.com"
ck_email.test(email)
This task depends upon

Comment by Ferdinand (PaGaisu) - Tuesday, 11 February 2014, 16:42 GMT+2
this one is possibly better:
function validateEmail(email) {
var re = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
return re.test(email);
}

Loading...