mirror of
https://github.com/karl0ss/homepage.git
synced 2025-07-02 22:19:08 +01:00
Fix: fix kavita API body with key (#4948)
This commit is contained in:
parent
9b06212a92
commit
b5ac617597
@ -14,7 +14,11 @@ async function login(widget, service) {
|
|||||||
const endpoint = "Account/login";
|
const endpoint = "Account/login";
|
||||||
const api = widgets?.[widget.type]?.api;
|
const api = widgets?.[widget.type]?.api;
|
||||||
const loginUrl = new URL(formatApiCall(api, { endpoint, ...widget }));
|
const loginUrl = new URL(formatApiCall(api, { endpoint, ...widget }));
|
||||||
const loginBody = {};
|
const loginBody = {
|
||||||
|
username: "",
|
||||||
|
password: "",
|
||||||
|
apiKey: "",
|
||||||
|
};
|
||||||
if (widget.username && widget.password) {
|
if (widget.username && widget.password) {
|
||||||
loginBody.username = widget.username;
|
loginBody.username = widget.username;
|
||||||
loginBody.password = widget.password;
|
loginBody.password = widget.password;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user