mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-06 20:28:48 +00:00
Fix: fix kavita API body with key (#4948)
This commit is contained in:
parent
9b06212a92
commit
b5ac617597
1 changed files with 5 additions and 1 deletions
|
@ -14,7 +14,11 @@ async function login(widget, service) {
|
|||
const endpoint = "Account/login";
|
||||
const api = widgets?.[widget.type]?.api;
|
||||
const loginUrl = new URL(formatApiCall(api, { endpoint, ...widget }));
|
||||
const loginBody = {};
|
||||
const loginBody = {
|
||||
username: "",
|
||||
password: "",
|
||||
apiKey: "",
|
||||
};
|
||||
if (widget.username && widget.password) {
|
||||
loginBody.username = widget.username;
|
||||
loginBody.password = widget.password;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue