mirror of
https://github.com/jackeilles/xygt.git
synced 2024-11-27 17:22:40 +01:00
typo
This commit is contained in:
parent
4b3d44536d
commit
74a24c3709
1 changed files with 1 additions and 1 deletions
|
@ -169,7 +169,7 @@ def delete(id):
|
|||
|
||||
data = Config.files.find_one({"id": id})
|
||||
|
||||
if data["userid"] == request.form.get("userid") and bcrypt.check_password_hash(Config.user.find_one({"userid": data["userid"]})["idpass"], request.form.get("idpass")):
|
||||
if data["userid"] == request.form.get("userid") and bcrypt.check_password_hash(Config.users.find_one({"userid": data["userid"]})["idpass"], request.form.get("idpass")):
|
||||
Config.files.delete_one({"id": id})
|
||||
os.remove(os.path.join(Config.fileDir, secure_filename(id)))
|
||||
return "File deleted."
|
||||
|
|
Loading…
Reference in a new issue