Email to lower case. The emails should be case-insensitive.

This commit is contained in:
denihs
2022-05-24 10:14:04 -04:00
parent 04f010b186
commit 8bd896f1a7

View File

@@ -182,7 +182,10 @@ Meteor.methods({
const tokens = emails
.map(email => {
// if the email was informed we will notify only this email
if (selector.email && selector.email !== email) {
if (
selector.email &&
selector.email.toLowerCase() !== email.toLowerCase()
) {
return null;
}
const sequence = generateSequence();