Fixed RDP/SSH use of saved credentials, #3924

This commit is contained in:
Ylian Saint-Hilaire 2022-05-02 12:19:03 -07:00
parent b15a511493
commit 41b6b6a54a
1 changed files with 2 additions and 2 deletions

View File

@ -1966,9 +1966,9 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF
var serverCredentials = false; var serverCredentials = false;
if (domain.allowsavingdevicecredentials !== false) { if (domain.allowsavingdevicecredentials !== false) {
if (page == 'ssh') { if (page == 'ssh') {
serverCredentials = ((typeof node.rdp == 'object') && (typeof node.rdp.d == 'string') && (typeof node.rdp.u == 'string') && (typeof node.rdp.p == 'string'))
} else {
serverCredentials = ((typeof node.ssh == 'object') && (typeof node.ssh.u == 'string')) serverCredentials = ((typeof node.ssh == 'object') && (typeof node.ssh.u == 'string'))
} else {
serverCredentials = ((typeof node.rdp == 'object') && (typeof node.rdp.d == 'string') && (typeof node.rdp.u == 'string') && (typeof node.rdp.p == 'string'))
} }
} }