mirror of
https://github.com/lnbits/lnbits.git
synced 2025-06-18 04:40:56 +02:00
Enforce https on Success URL for lnurlp
This commit is contained in:
parent
f6a8e96087
commit
036e45d77c
@ -88,6 +88,9 @@ async def api_link_create_or_update(link_id=None):
|
|||||||
):
|
):
|
||||||
return jsonify({"message": "Must use full satoshis."}), HTTPStatus.BAD_REQUEST
|
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:
|
if link_id:
|
||||||
link = await get_pay_link(link_id)
|
link = await get_pay_link(link_id)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user