Browse Source

Form validation to withdrawmaker

fee_issues
Arc 5 years ago
committed by GitHub
parent
commit
fc9b30bbee
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      lnbits/__init__.py

4
lnbits/__init__.py

@ -630,6 +630,10 @@ def withdrawmaker():
uniq = data["uniq"]
usr = data["usr"]
wall = wal.split("-")
#Form validation
if int(amt) < 0 or not tit.isalpha() or wal == "" or int(minamt) < 0 or int(maxamt) < 0 or int(minamt) > int(maxamt) or int(tme) < 0:
return jsonify({"ERROR": "FORM ERROR"}), 401
#If id that means its a link being edited, delet the record first
if "id" in data:

Loading…
Cancel
Save