mirror of
https://github.com/karl0ss/homepage.git
synced 2025-04-29 12:03:41 +01:00
Fix: homebridge widget with numeric username or password (#3220)
This commit is contained in:
parent
0d7b77260f
commit
2ebcb311e8
@ -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…
x
Reference in New Issue
Block a user