From f97b64a0c602f1167b68e0369466c9098b084f35 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Tue, 27 Feb 2018 15:23:11 -0500 Subject: [PATCH] Fixes #6317 While not the most elegant solution, I'm only really interested in stopping registrations that contain two emails in one field. The only separators I know of are the comma and semicolon. If there are more, please let me know. --- public/src/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/src/utils.js b/public/src/utils.js index 7443a0ff8a..b0a6c83b58 100644 --- a/public/src/utils.js +++ b/public/src/utils.js @@ -387,7 +387,7 @@ }, isEmailValid: function (email) { - return typeof email === 'string' && email.length && email.indexOf('@') !== -1; + return typeof email === 'string' && email.length && email.indexOf('@') !== -1 && email.indexOf(',') === -1 && email.indexOf(';') === -1; }, isUserNameValid: function (name) {