Skip to content

Commit

Permalink
removing debugging codes
Browse files Browse the repository at this point in the history
  • Loading branch information
ashaban committed Aug 23, 2021
1 parent c26b1d7 commit 768fd5d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions gofr-backend/lib/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,14 @@ const cleanReqPath = function (req, res, next) {
};

const jwtValidator = function (req, res, next) {
logger.error(req.path);
if (req.method == 'OPTIONS'
|| (req.query.hasOwnProperty('authDisabled') && req.query.authDisabled)
|| req.path == '/auth/login/'
|| req.path.startsWith('/auth/login')
|| req.path == '/getSignupConf'
|| req.path == '/config/getGeneralConfig'
|| req.path == '/addUser/'
|| req.path.startsWith('/progress')
) {
logger.error('here');
return next();
}
if (!req.headers.authorization || req.headers.authorization.split(' ').length !== 2) {
Expand Down

0 comments on commit 768fd5d

Please sign in to comment.