Enhancement: support photoprism app passwords (#4028)

This commit is contained in:
shamoon authored and GitHub committed 2024-09-23 14:32:36 -07:00
1 parent 20f5134606
commit 8c1e50d9e7
2 files changed
+11 -3

No files matched your search

+5
View File
@@ -32,6 +32,11 @@ export default async function photoprismProxyHandler(req, res) {
username: widget.username,
password: widget.password,
});
} else if (widget.key) {
params.headers.Authorization = `Bearer ${widget.key}`;
params.body = JSON.stringify({
authToken: widget.key,
});
}
const [status, contentType, data] = await httpProxy(url, params);