Fix: homebridge widget with numeric username or password (#3220)

pull/3221/head
Luca Herrero 1 month ago committed by GitHub
parent 0d7b77260f
commit 2ebcb311e8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -14,7 +14,7 @@ async function login(widget, service) {
const endpoint = "auth/login";
const api = widgets?.[widget.type]?.api;
const loginUrl = new URL(formatApiCall(api, { endpoint, ...widget }));
const loginBody = { username: widget.username, password: widget.password };
const loginBody = { username: widget.username.toString(), password: widget.password.toString() };
const headers = { "Content-Type": "application/json" };
// eslint-disable-next-line no-unused-vars
const [status, contentType, data, responseHeaders] = await httpProxy(loginUrl, {

Loading…
Cancel
Save