This commit is contained in:
split / May 2023-06-28 22:33:20 -07:00
parent 35f914a58a
commit b484489710
2 changed files with 3 additions and 5 deletions

View file

@ -46,7 +46,7 @@ adminRoutes.post("/reset", parser, (req,res) => {
if (!acc) return if (!acc) return
if (!acc.admin) return if (!acc.admin) return
if (typeof req.body.target !== "string" || typeof req.body.password !== "string" || !req.body.password) { if (typeof req.body.target !== "string" || typeof req.body.password !== "string") {
res.status(404) res.status(404)
res.send() res.send()
return return
@ -75,7 +75,7 @@ adminRoutes.post("/transfer", parser, (req,res) => {
if (!acc) return if (!acc) return
if (!acc.admin) return if (!acc.admin) return
if (typeof req.body.target !== "string" || typeof req.body.password !== "string" || !req.body.password) { if (typeof req.body.target !== "string" || typeof req.body.owner !== "string") {
res.status(404) res.status(404)
res.send() res.send()
return return

View file

@ -45,9 +45,7 @@ export function chgOwner(optPicker) {
name: "File ID", name: "File ID",
icon: "/static/assets/icons/file.svg", icon: "/static/assets/icons/file.svg",
id: "file", id: "file",
inputSettings: { inputSettings: {}
password: true
}
}, },
{ {
name: "New owner", name: "New owner",