lnurlp: account for invalid amount in querystring.

This commit is contained in:
fiatjaf 2021-04-27 15:52:44 -03:00
parent 88895f80be
commit b6f015b561

View File

@ -54,7 +54,7 @@ async def api_lnurl_callback(link_id):
min = link.min * 1000
max = link.max * 1000
amount_received = int(request.args.get("amount"))
amount_received = int(request.args.get("amount") or 0)
if amount_received < min:
return (
jsonify(