Merge pull request #1624 from alFReD-NSH/patch-1

Fix options.to assertion message in user.verify
This commit is contained in:
Simon Ho 2015-08-26 16:55:39 -07:00
commit ab3a9502f6
1 changed files with 1 additions and 1 deletions

View File

@ -355,7 +355,7 @@ module.exports = function(User) {
assert(options.type, 'You must supply a verification type (options.type)');
assert(options.type === 'email', 'Unsupported verification type');
assert(options.to || this.email, 'Must include options.to when calling user.verify() or the user must have an email property');
assert(options.from, 'Must include options.from when calling user.verify() or the user must have an email property');
assert(options.from, 'Must include options.from when calling user.verify()');
options.redirect = options.redirect || '/';
options.template = path.resolve(options.template || path.join(__dirname, '..', '..', 'templates', 'verify.ejs'));