mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-06 21:57:48 +01:00
Enhancement: support photoprism app passwords (#4028)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user