Skip to content

Commit

Permalink
chore(debug): removed logging
Browse files Browse the repository at this point in the history
  • Loading branch information
polonel committed Mar 12, 2019
1 parent 5e2e222 commit 9f4cd45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 2 additions & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ function launchServer (db) {
var env = { FORK: 1, NODE_ENV: global.env }
if (isDocker) {
var envDocker = {
TRUDESK_DOCKER: process.env.TRUDESK_DOCKER,
TD_MONGODB_SERVER: process.env.TD_MONGODB_SERVER,
TD_MONGODB_PORT: process.env.TD_MONGODB_PORT,
TD_MONGODB_USERNAME: process.env.TD_MONGODB_USERNAME,
Expand Down Expand Up @@ -237,7 +238,7 @@ function launchServer (db) {
}

function dbCallback (err, db) {
if (err) {
if (err || !db) {
return start()
}

Expand Down
4 changes: 0 additions & 4 deletions src/passport/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@ module.exports = function () {
return done(null, false, req.flash('loginMessage', 'No User Found.'))
}

if (!User.validate(password, user.password)) {
console.log('Invalid Pass')
}

if (!User.validate(password, user.password)) {
return done(null, false, req.flash('loginMessage', 'Incorrect Password.'))
}
Expand Down

0 comments on commit 9f4cd45

Please sign in to comment.