diff --git a/accounts-guest-server.js b/accounts-guest-server.js index 9b9d6b8..d62e499 100644 --- a/accounts-guest-server.js +++ b/accounts-guest-server.js @@ -13,6 +13,8 @@ Accounts.removeOldGuests = function (before) { Meteor.methods({ createGuest: function (email) { + check(email, Match.OneOf(String, null, undefined)); + /* if explicitly disabled, happily do nothing */ if (AccountsGuest.enabled === false){ return true;