diff --git a/lib/units/auth/ldap.js b/lib/units/auth/ldap.js index 222a60cb..209ace6a 100644 --- a/lib/units/auth/ldap.js +++ b/lib/units/auth/ldap.js @@ -50,19 +50,6 @@ module.exports = function(options) { next() }) - app.get('/static/auth/ldap/views/partials/:name.html', function(req, res) { - var whitelist = { - 'signin': true - } - - if (whitelist[req.params.name]) { - res.render('partials/' + req.params.name) - } - else { - res.send(404) - } - }) - app.get('/', function(req, res) { res.redirect('/auth/ldap/') }) diff --git a/lib/units/auth/mock.js b/lib/units/auth/mock.js index 5a421522..5fb77b95 100644 --- a/lib/units/auth/mock.js +++ b/lib/units/auth/mock.js @@ -49,19 +49,6 @@ module.exports = function(options) { next() }) - app.get('/static/auth/mock/views/partials/:name.html', function(req, res) { - var whitelist = { - 'signin': true - } - - if (whitelist[req.params.name]) { - res.render('partials/' + req.params.name) - } - else { - res.send(404) - } - }) - app.get('/', function(req, res) { res.redirect('/auth/mock/') })