From b672a7710cfa75cf35d2624179e067feea99b826 Mon Sep 17 00:00:00 2001
From: bitkarrot <73979971+bitkarrot@users.noreply.github.com>
Date: Tue, 14 Mar 2023 16:35:31 -0700
Subject: [PATCH] add ln address to qr code
---
static/js/index.js | 3 ++-
templates/lnurlp/index.html | 5 ++++-
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/static/js/index.js b/static/js/index.js
index 0075f28..c44c4ca 100644
--- a/static/js/index.js
+++ b/static/js/index.js
@@ -93,7 +93,8 @@ new Vue({
: 'do nothing',
lnurl: link.lnurl,
pay_url: link.pay_url,
- print_url: link.print_url
+ print_url: link.print_url,
+ username: link.username
}
this.qrCodeDialog.show = true
},
diff --git a/templates/lnurlp/index.html b/templates/lnurlp/index.html
index b5f5909..adbcdb7 100644
--- a/templates/lnurlp/index.html
+++ b/templates/lnurlp/index.html
@@ -319,7 +319,10 @@
Dispatches webhook to: {{ qrCodeDialog.data.webhook
}}
On success: {{ qrCodeDialog.data.success }}
- Lightning Address: {{ qrCodeDialog.data.username}}
+
+ Lightning Address: {{ qrCodeDialog.data.username}}@{{domain}}
+
+