Skip to content

Commit

Permalink
Fix options.to assertion message in user.verify
Browse files Browse the repository at this point in the history
  • Loading branch information
faridnsh committed Aug 26, 2015
1 parent 5625f18 commit 1cc2592
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/models/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand Down

0 comments on commit 1cc2592

Please sign in to comment.