Set password functionality

This commit is contained in:
Jamie Curnow
2018-06-25 16:56:13 +10:00
parent 446921111e
commit 493bb77169
10 changed files with 183 additions and 87 deletions

View File

@ -84,7 +84,11 @@ app.use(function (err, req, res, next) {
// Not every error is worth logging - but this is good for now until it gets annoying.
if (typeof err.stack !== 'undefined' && err.stack) {
log.warn(err.stack);
if (process.env.NODE_ENV === 'development') {
log.warn(err.stack);
} else {
log.warn(err.message);
}
}
res