checkNameEmail: function(o)
{
return (
- (!o.name || o.name.match(/^[\w]+$/)) &&
- (!o.email || o.email.match(/^[\w.+-]+@[\w.+-]+$/))
+ (!o.name || !!(o.name.match(/^[\w-]+$/))) &&
+ (!o.email || !!(o.email.match(/^[\w.+-]+@[\w.+-]+$/)))
);
},
notify: function(user, message)
{
const subject = "vchess.club - notification";
- const body = "Hello " + user.name + "!" + `
+ const body = "Hello " + user.name + " !" + `
` + message;
sendEmail(params.mail.noreply, user.email, subject, body);
},