diff --git a/server/app.js b/server/app.js index dae3eb79..140c398f 100644 --- a/server/app.js +++ b/server/app.js @@ -35,6 +35,19 @@ app.disable('x-powered-by') // static files app.use(express.static(publicPath, expressOptions)) +app.get('/reauth', function (req, res, next) { + var r = req.headers.referer || '/'; + res.status(401).send( + '' + + ' ' + + ' ' + + ' ' + + ' ' + + ' Go Back' + + ' ' + + ''); +}) + app.get('/ssh/host/:host?', function (req, res, next) { res.sendFile(path.join(path.join(publicPath, 'client.htm'))) // capture, assign, and validated variables diff --git a/server/socket.js b/server/socket.js index fceedcbf..4ea8ac53 100644 --- a/server/socket.js +++ b/server/socket.js @@ -7,7 +7,9 @@ var SSH = require('ssh2').Client // var fs = require('fs') // var hostkeys = JSON.parse(fs.readFileSync('./hostkeyhashes.json', 'utf8')) var termCols, termRows -var menuData = ' Start Log Download Log' +var menuData = ' Start Log' + + ' Download Log' + + ' Switch User'; // public module.exports = function socket (socket) {