This commit is contained in:
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.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.send()
return
@ -75,7 +75,7 @@ adminRoutes.post("/transfer", parser, (req,res) => {
if (!acc) 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.send()
return

View file

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