From a93237cf106b4ec635dd08ebe083900b61c5cf35 Mon Sep 17 00:00:00 2001 From: bill bittner Date: Thu, 31 May 2018 09:38:11 -0700 Subject: [PATCH] updated debug console logs --- server/controllers/api/user/password/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/controllers/api/user/password/index.js b/server/controllers/api/user/password/index.js index ebcd3182..e1e3cff3 100644 --- a/server/controllers/api/user/password/index.js +++ b/server/controllers/api/user/password/index.js @@ -12,7 +12,7 @@ const { auth: { masterPassword } } = require('../../../../../config/siteConfig.j const updateUserPassword = ({ ip, originalUrl, body }, res) => { let userRecord; const { userName, oldPassword, newPassword } = body; - logger.info('body:', body); + if (!masterPassword) { return res.status(400).json({ success: false, @@ -38,10 +38,10 @@ const updateUserPassword = ({ ip, originalUrl, body }, res) => { throw new Error('no user found'); } if (oldPassword === masterPassword) { - console.log('master password provided'); + logger.debug('master password provided'); return true; } else { - console.log('old password provided'); + logger.debug('old password provided'); return userRecord.comparePassword(oldPassword); } })