mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-30 15:15:24 +00:00
fix: harden plugin sockets, public routes, prebuilt binaries and login fallback
This commit is contained in:
1 parent
efb4259438
commit
5e54d95e71
16 files changed
+318
-23
No files matched your search
@@ -511,7 +511,10 @@ export async function resolveOwnerProtocolLogin(
|
||||
|
||||
const fallback = declared.hostLoginFallback ?? [];
|
||||
if (fallback.includes("username")) username ||= str(host.username);
|
||||
if (fallback.includes("password")) password ||= str(host.password);
|
||||
// A key or credential host can still carry an old password; never send it.
|
||||
if (fallback.includes("password") && host.authType === "password") {
|
||||
password ||= str(host.password);
|
||||
}
|
||||
|
||||
const secretFields: Record<string, string> = {};
|
||||
for (const [key, value] of Object.entries(login?.secretFields ?? {})) {
|
||||
|
||||
Reference in new issue
Block a user