mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-21 16:00:26 +01:00
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.
This commit is contained in:
@@ -387,7 +387,7 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
isEmailValid: function (email) {
|
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) {
|
isUserNameValid: function (name) {
|
||||||
|
|||||||
Reference in New Issue
Block a user