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/mattermost/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/web/auth/mattermost/index.js') diff --git a/lib/web/auth/mattermost/index.js b/lib/web/auth/mattermost/index.js index 48d6d297..78eca2af 100644 --- a/lib/web/auth/mattermost/index.js +++ b/lib/web/auth/mattermost/index.js @@ -5,7 +5,7 @@ const passport = require('passport') const Mattermost = require('mattermost') const OAuthStrategy = require('passport-oauth2').Strategy const config = require('../../../config') -const { setReturnToFromReferer, passportGeneralCallback } = require('../utils') +const { passportGeneralCallback } = require('../utils') const mattermost = new Mattermost.Client() @@ -36,7 +36,6 @@ mattermostStrategy.userProfile = (accessToken, done) => { passport.use(mattermostStrategy) mattermostAuth.get('/auth/mattermost', function (req, res, next) { - setReturnToFromReferer(req) passport.authenticate('oauth2')(req, res, next) }) -- cgit v1.2.3