mirror of
https://github.com/lnbits/lnbits.git
synced 2025-09-20 13:04:23 +02:00
Enforce https on Success URL for lnurlp
This commit is contained in:
@@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user