mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-14 17:26:26 +01:00
🚑 Hotfix password and usernames
This commit is contained in:
@@ -35,7 +35,7 @@ async function Post(req: NextApiRequest, res: NextApiResponse) {
|
|||||||
delugeServices.map((service) =>
|
delugeServices.map((service) =>
|
||||||
new Deluge({
|
new Deluge({
|
||||||
baseUrl: service.url,
|
baseUrl: service.url,
|
||||||
password: service.password,
|
password: 'password' in service ? service.password : '',
|
||||||
})
|
})
|
||||||
.getAllData()
|
.getAllData()
|
||||||
.then((e) => e.torrents.map((torrent) => torrents.push(torrent)))
|
.then((e) => e.torrents.map((torrent) => torrents.push(torrent)))
|
||||||
@@ -46,8 +46,8 @@ async function Post(req: NextApiRequest, res: NextApiResponse) {
|
|||||||
transmissionServices.map((service) =>
|
transmissionServices.map((service) =>
|
||||||
new Transmission({
|
new Transmission({
|
||||||
baseUrl: service.url,
|
baseUrl: service.url,
|
||||||
username: service.username,
|
username: 'username' in service ? service.username : '',
|
||||||
password: service.password,
|
password: 'password' in service ? service.password : '',
|
||||||
})
|
})
|
||||||
.getAllData()
|
.getAllData()
|
||||||
.then((e) => e.torrents.map((torrent) => torrents.push(torrent)))
|
.then((e) => e.torrents.map((torrent) => torrents.push(torrent)))
|
||||||
|
|||||||
Reference in New Issue
Block a user