mock for emailer for resetPassword route

This commit is contained in:
Victor Piousbox
2016-03-20 02:32:55 +00:00
parent d2c1c2cec6
commit 3784f68dd8
3 changed files with 13 additions and 8 deletions
+3
View File
@@ -96,6 +96,9 @@ api.resetPassword = {
middlewares: [],
url: '/user/reset-password',
async handler (req, res) {
console.log('is prod is:', nconf.get('IS_PROD'));
req.checkBody({
email: {
notEmpty: {errorMessage: res.t('missingEmail')},