Revamped login system, fixed no auth modal errors, changed many UI's.
This commit is contained in:
@@ -185,7 +185,7 @@ io.of('/database.io').on('connection', (socket) => {
|
||||
user: hostConfig.user.trim(),
|
||||
port: hostConfig.port || 22,
|
||||
password: hostConfig.password?.trim() || undefined,
|
||||
rsaKey: hostConfig.rsaKey?.trim() || undefined
|
||||
sshKey: hostConfig.sshKey?.trim() || undefined,
|
||||
};
|
||||
|
||||
const finalName = cleanConfig.name || cleanConfig.ip;
|
||||
@@ -415,7 +415,7 @@ io.of('/database.io').on('connection', (socket) => {
|
||||
user: newHostConfig.user.trim(),
|
||||
port: newHostConfig.port || 22,
|
||||
password: newHostConfig.password?.trim() || undefined,
|
||||
rsaKey: newHostConfig.rsaKey?.trim() || undefined
|
||||
sshKey: newHostConfig.sshKey?.trim() || undefined,
|
||||
};
|
||||
|
||||
const encryptedConfig = encryptData(cleanConfig, userId, sessionToken);
|
||||
|
||||
@@ -47,7 +47,7 @@ io.on("connection", (socket) => {
|
||||
};
|
||||
|
||||
logger.info("Connecting with config:", safeHostConfig);
|
||||
const { ip, port, user, password, privateKey, passphrase } = hostConfig;
|
||||
const { ip, port, user, password, sshKey, } = hostConfig;
|
||||
|
||||
const conn = new SSHClient();
|
||||
conn
|
||||
@@ -99,8 +99,7 @@ io.on("connection", (socket) => {
|
||||
port: port,
|
||||
username: user,
|
||||
password: password,
|
||||
privateKey: privateKey ? Buffer.from(privateKey) : undefined,
|
||||
passphrase: passphrase,
|
||||
sshKey: sshKey ? Buffer.from(sshKey) : undefined,
|
||||
tryKeyboard: true,
|
||||
algorithms: {
|
||||
kex: [
|
||||
|
||||
Reference in New Issue
Block a user