summaryrefslogtreecommitdiff
path: root/lib/web/auth/oauth2/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/web/auth/oauth2/index.js')
-rw-r--r--lib/web/auth/oauth2/index.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/web/auth/oauth2/index.js b/lib/web/auth/oauth2/index.js
index 78434271..2bd73196 100644
--- a/lib/web/auth/oauth2/index.js
+++ b/lib/web/auth/oauth2/index.js
@@ -4,7 +4,7 @@ const Router = require('express').Router
const passport = require('passport')
const { Strategy, InternalOAuthError } = require('passport-oauth2')
const config = require('../../../config')
-const { setReturnToFromReferer, passportGeneralCallback } = require('../utils')
+const { passportGeneralCallback } = require('../utils')
let oauth2Auth = module.exports = Router()
@@ -93,7 +93,6 @@ passport.use(new OAuth2CustomStrategy({
}, passportGeneralCallback))
oauth2Auth.get('/auth/oauth2', function (req, res, next) {
- setReturnToFromReferer(req)
passport.authenticate('oauth2')(req, res, next)
})