mirror of
https://github.com/lnbits/lnbits.git
synced 2025-09-19 20:14:59 +02:00
remove LNURL-p description_hash validation (#1951)
This commit is contained in:
@@ -399,17 +399,6 @@ async def api_payments_pay_lnurl(
|
|||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
if invoice.description_hash != data.description_hash:
|
|
||||||
raise HTTPException(
|
|
||||||
status_code=HTTPStatus.BAD_REQUEST,
|
|
||||||
detail=(
|
|
||||||
(
|
|
||||||
f"{domain} returned an invalid invoice. Expected description_hash"
|
|
||||||
f" == {data.description_hash}, got {invoice.description_hash}."
|
|
||||||
),
|
|
||||||
),
|
|
||||||
)
|
|
||||||
|
|
||||||
extra = {}
|
extra = {}
|
||||||
|
|
||||||
if params.get("successAction"):
|
if params.get("successAction"):
|
||||||
|
Reference in New Issue
Block a user