Skip to content

Commit 4f6d247

Browse files
committed
remove unnecessary logging
1 parent 14a752e commit 4f6d247

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

app/middleware/isOAuthAllowed.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,9 @@ const isOAuthAllowed = async (req, res, next) => {
1010
error: 'Organization does not exist!'
1111
})
1212
}
13-
console.log('req._parsedUrl.path.slice(6, 12): ', req._parsedUrl.path.slice(6, 12))
1413
switch (req._parsedUrl.path.slice(6, 12)) {
1514
case 'google': {
1615
if(org[0].options.authentication.google) {
17-
console.log("Google Next")
1816
next()
1917
}else {
2018
throw new Error('Google OAuth Not Allowed')
@@ -23,7 +21,6 @@ const isOAuthAllowed = async (req, res, next) => {
2321
}
2422
case 'github': {
2523
if(org[0].options.authentication.github) {
26-
console.log("GitHub Next")
2724
next()
2825
}else {
2926
throw new Error('GitHub OAuth Not Allowed')
@@ -32,7 +29,6 @@ const isOAuthAllowed = async (req, res, next) => {
3229
}
3330
default: {
3431
if(org[0].options.authentication.email) {
35-
console.log("Email Next")
3632
next()
3733
}else {
3834
throw new Error('Email Auth has beed turned off!')

0 commit comments

Comments
 (0)