Merge pull request #527 from talvasconcelos/fix/instantWallet
Fix instant wallet form LNURLw
This commit is contained in:
commit
b88abd1a46
2 changed files with 3 additions and 3 deletions
|
|
@ -11,7 +11,7 @@
|
||||||
color="primary"
|
color="primary"
|
||||||
@click="processing"
|
@click="processing"
|
||||||
type="a"
|
type="a"
|
||||||
href="{{ url_for('core.lnurlwallet', lightning=lnurl) }}"
|
href="{{ url_for('core.lnurlwallet') }}?lightning={{ lnurl }}"
|
||||||
>
|
>
|
||||||
Press to claim bitcoin
|
Press to claim bitcoin
|
||||||
</q-btn>
|
</q-btn>
|
||||||
|
|
|
||||||
|
|
@ -15,8 +15,8 @@ from lnbits.core.models import User
|
||||||
from lnbits.decorators import check_user_exists
|
from lnbits.decorators import check_user_exists
|
||||||
from lnbits.helpers import template_renderer, url_for
|
from lnbits.helpers import template_renderer, url_for
|
||||||
from lnbits.settings import (
|
from lnbits.settings import (
|
||||||
LNBITS_ALLOWED_USERS,
|
|
||||||
LNBITS_ADMIN_USERS,
|
LNBITS_ADMIN_USERS,
|
||||||
|
LNBITS_ALLOWED_USERS,
|
||||||
LNBITS_SITE_TITLE,
|
LNBITS_SITE_TITLE,
|
||||||
SERVICE_FEE,
|
SERVICE_FEE,
|
||||||
)
|
)
|
||||||
|
|
@ -226,7 +226,7 @@ async def lnurl_balance_notify(request: Request, service: str):
|
||||||
redeem_lnurl_withdraw(bc.wallet, bc.url)
|
redeem_lnurl_withdraw(bc.wallet, bc.url)
|
||||||
|
|
||||||
|
|
||||||
@core_html_routes.get("/lnurlwallet", response_class=RedirectResponse)
|
@core_html_routes.get("/lnurlwallet", response_class=RedirectResponse, name="core.lnurlwallet")
|
||||||
async def lnurlwallet(request: Request):
|
async def lnurlwallet(request: Request):
|
||||||
async with db.connect() as conn:
|
async with db.connect() as conn:
|
||||||
account = await create_account(conn=conn)
|
account = await create_account(conn=conn)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue