From 1cc25923a7ac9b9e546149dd220f09d5dea2f9a1 Mon Sep 17 00:00:00 2001 From: Farid Nouri Neshat Date: Thu, 27 Aug 2015 00:25:09 +0800 Subject: [PATCH] Fix options.to assertion message in user.verify --- common/models/user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/models/user.js b/common/models/user.js index 66f2ba73..dd98f2e5 100644 --- a/common/models/user.js +++ b/common/models/user.js @@ -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'));