Skip to content

Commit

Permalink
Merge pull request #441 from wallfair-organization/feat/AddsLogsToDeb…
Browse files Browse the repository at this point in the history
…ugWeb3Login

Adds logs to debug issue
  • Loading branch information
wholespace214 committed Apr 3, 2022
2 parents e1fedce + 9e77299 commit 5281ad4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions controllers/sessions-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,7 @@ module.exports = {
},

async loginWeb3(req, res, next) {
console.log('Starting web3 log-in');
const errors = validationResult(req);
if (!errors.isEmpty()) {
return next(new ErrorHandler(422, errors));
Expand All @@ -347,6 +348,7 @@ module.exports = {
return next(new ErrorHandler(401, 'Failed to login'));
}
}
console.log(`User check ${userCheck}, skip token ${process.env.RECAPTCHA_SKIP_TOKEN}, Recaptcha token ${recaptchaToken}`);
if (!userCheck && (!process.env.RECAPTCHA_SKIP_TOKEN || process.env.RECAPTCHA_SKIP_TOKEN !== skip)) {
console.log('[RECAPTCHA - TOKEN]:', recaptchaToken);

Expand Down

0 comments on commit 5281ad4

Please sign in to comment.