summaryrefslogtreecommitdiff
path: root/lib/web/auth/ldap
diff options
context:
space:
mode:
authorSheogorath2019-12-03 14:35:19 +0100
committerGitHub2019-12-03 14:35:19 +0100
commit9bd09805d42da5953e25342620d94f4f5b260b6e (patch)
tree60af1701a119262d77691152a93ce40ce4e6a705 /lib/web/auth/ldap
parent689f5a0a9583fdd774a271a9e6265ee5356d72a0 (diff)
parentbd689dd09687d9523e0457ad0e52ac583bc27075 (diff)
Merge pull request #227 from foobarable/fix/saml
Fixing redirection after SAML login
Diffstat (limited to '')
-rw-r--r--lib/web/auth/ldap/index.js2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/web/auth/ldap/index.js b/lib/web/auth/ldap/index.js
index 28f3e471..b501106d 100644
--- a/lib/web/auth/ldap/index.js
+++ b/lib/web/auth/ldap/index.js
@@ -6,7 +6,6 @@ const LDAPStrategy = require('passport-ldapauth')
const config = require('../../../config')
const models = require('../../../models')
const logger = require('../../../logger')
-const { setReturnToFromReferer } = require('../utils')
const { urlencodedParser } = require('../../utils')
const errors = require('../../../errors')
@@ -82,7 +81,6 @@ passport.use(new LDAPStrategy({
ldapAuth.post('/auth/ldap', urlencodedParser, function (req, res, next) {
if (!req.body.username || !req.body.password) return errors.errorBadRequest(res)
- setReturnToFromReferer(req)
passport.authenticate('ldapauth', {
successReturnToOrRedirect: config.serverURL + '/',
failureRedirect: config.serverURL + '/',