summaryrefslogtreecommitdiff
path: root/lib/web/auth/gitlab
diff options
context:
space:
mode:
Diffstat (limited to 'lib/web/auth/gitlab')
-rw-r--r--lib/web/auth/gitlab/index.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/web/auth/gitlab/index.js b/lib/web/auth/gitlab/index.js
index 4cebbc10..1b628e81 100644
--- a/lib/web/auth/gitlab/index.js
+++ b/lib/web/auth/gitlab/index.js
@@ -5,7 +5,7 @@ const passport = require('passport')
const GitlabStrategy = require('passport-gitlab2').Strategy
const config = require('../../../config')
const response = require('../../../response')
-const { setReturnToFromReferer, passportGeneralCallback } = require('../utils')
+const { passportGeneralCallback } = require('../utils')
let gitlabAuth = module.exports = Router()
@@ -18,7 +18,6 @@ passport.use(new GitlabStrategy({
}, passportGeneralCallback))
gitlabAuth.get('/auth/gitlab', function (req, res, next) {
- setReturnToFromReferer(req)
passport.authenticate('gitlab')(req, res, next)
})