Revamped login system, fixed no auth modal errors, changed many UI's.

This commit is contained in:
Karmaa
2025-03-20 20:41:45 -05:00
parent b5af67bdd6
commit 28081ad6b2
13 changed files with 458 additions and 773 deletions

View File

@@ -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);

View File

@@ -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: [