MAJOR: Updates for Authenticated Web UI and CLI #30

Open
coolaj86 wants to merge 77 commits from next into master
Showing only changes of commit 142fb0942c - Show all commits

View File

@ -628,6 +628,7 @@ function handleApi(req, res) {
function getStatus() {
var now = Date.now();
res.setHeader('Content-Type', 'application/json');
require('../lib/ssh.js').checkSecurity().then(function (ssh) {
res.end(JSON.stringify(
{ module: 'status'
, version: pkg.version
@ -642,8 +643,12 @@ function handleApi(req, res) {
, reconnects: connectTimes.length
, servernames: state.servernames
, ssh: state.config.sshAuto
, ssh_permit_root_login: ssh.permit_root_login
, ssh_password_authentication: ssh.password_authentication
, ssh_requests_password: ssh.requests_password
}
));
});
}
function route() {