summaryrefslogtreecommitdiff
path: root/lib/web/auth/mattermost
diff options
context:
space:
mode:
Diffstat (limited to 'lib/web/auth/mattermost')
-rw-r--r--lib/web/auth/mattermost/index.js3
1 files changed, 1 insertions, 2 deletions
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)
})