Enforce https on Success URL for lnurlp
This commit is contained in:
parent
f6a8e96087
commit
036e45d77c
1 changed files with 3 additions and 0 deletions
|
|
@ -88,6 +88,9 @@ async def api_link_create_or_update(link_id=None):
|
|||
):
|
||||
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…
Add table
Add a link
Reference in a new issue