parent
4fdfcf713d
commit
07141ff9d9
@ -1,2 +1,2 @@ |
|||||||
RocketChat.checkEmailAvailability = (email) -> |
RocketChat.checkEmailAvailability = (email) -> |
||||||
return not Meteor.users.findOne({ "emails.address": { $regex : new RegExp("^" + s.trim(email) + "$", "i") } }) |
return not Meteor.users.findOne({ "emails.address": { $regex : new RegExp("^" + s.trim(s.escapeRegExp(email)) + "$", "i") } }) |
||||||
|
Loading…
Reference in new issue