From 3fb3ca54e9c038ad091d234b19f5bd64003f8321 Mon Sep 17 00:00:00 2001 From: Ralph Krimmel Date: Thu, 28 Nov 2019 12:25:59 +0100 Subject: Removing returnTo setting from referer in all other authentication sources Signed-off-by: Ralph Krimmel --- lib/web/auth/openid/index.js | 2 -- 1 file changed, 2 deletions(-) (limited to 'lib/web/auth/openid') diff --git a/lib/web/auth/openid/index.js b/lib/web/auth/openid/index.js index b0a28bec..28e164f5 100644 --- a/lib/web/auth/openid/index.js +++ b/lib/web/auth/openid/index.js @@ -7,7 +7,6 @@ const config = require('../../../config') const models = require('../../../models') const logger = require('../../../logger') const { urlencodedParser } = require('../../utils') -const { setReturnToFromReferer } = require('../utils') let openIDAuth = module.exports = Router() @@ -48,7 +47,6 @@ passport.use(new OpenIDStrategy({ })) openIDAuth.post('/auth/openid', urlencodedParser, function (req, res, next) { - setReturnToFromReferer(req) passport.authenticate('openid')(req, res, next) }) -- cgit v1.2.3