mirror of
https://github.com/mollersuite/monofile.git
synced 2024-11-21 21:36:26 -08:00
woops
This commit is contained in:
parent
35f914a58a
commit
b484489710
|
@ -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
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue