mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 11:07:41 +00:00
fix(security): prevent gateway token from defaulting to 'undefined' string
This commit is contained in:
committed by
Gustavo Madeira Santana
parent
0175cedf0e
commit
201d7fa956
@@ -177,7 +177,8 @@ export async function promptGatewayConfig(
|
||||
}),
|
||||
runtime,
|
||||
);
|
||||
gatewayToken = String(tokenInput).trim() || randomToken();
|
||||
const rawInput = tokenInput ? String(tokenInput).trim() : "";
|
||||
gatewayToken = rawInput || randomToken();
|
||||
}
|
||||
|
||||
if (authMode === "password") {
|
||||
|
||||
Reference in New Issue
Block a user