mirror of
https://github.com/lnbits/lnbits.git
synced 2025-06-11 09:21:12 +02:00
Enforce https on Success URL for lnurlp
This commit is contained in:
parent
f6a8e96087
commit
036e45d77c
@ -87,6 +87,9 @@ async def api_link_create_or_update(link_id=None):
|
||||
round(g.data["min"]) != g.data["min"] or round(g.data["max"]) != g.data["max"]
|
||||
):
|
||||
return jsonify({"message": "Must use full satoshis."}), HTTPStatus.BAD_REQUEST
|
||||
|
||||
if g.data["success_url"][:8] != "https://":
|
||||
return jsonify({"message": "Success URL must be secure https://..."}), HTTPStatus.BAD_REQUEST
|
||||
|
||||
if link_id:
|
||||
link = await get_pay_link(link_id)
|
||||
|
Loading…
x
Reference in New Issue
Block a user