From aa2e09bbeb79bbb564eb5d9a1613d450b6cc812a Mon Sep 17 00:00:00 2001 From: Ben Arc Date: Tue, 13 Apr 2021 11:10:21 +0100 Subject: [PATCH] Hidden api keys to prevent over shoulder attacks --- lnbits/core/templates/core/_api_docs.html | 5 +++++ lnbits/core/templates/core/wallet.html | 14 ++++++++------ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/lnbits/core/templates/core/_api_docs.html b/lnbits/core/templates/core/_api_docs.html index 43a2cc9d..4bb38fad 100644 --- a/lnbits/core/templates/core/_api_docs.html +++ b/lnbits/core/templates/core/_api_docs.html @@ -4,6 +4,11 @@ label="API info" :content-inset-level="0.5" > + + Wallet ID: {{ wallet.id }}
+ Admin key: {{ wallet.adminkey }}
+ Invoice/read key: {{ wallet.inkey }} +
-
LNbits wallet
- Wallet name: {{ wallet.name }}
- Wallet ID: {{ wallet.id }}
- Admin key: {{ wallet.adminkey }}
- Invoice/read key: {{ wallet.inkey }} +
+ LNbits wallet: {{ wallet.name }} +
+ {% include "core/_api_docs.html" %} @@ -238,7 +237,10 @@ > -

This QR code contains your wallet URL with full access. You can scan it from your phone to open your wallet from there.

+

+ This QR code contains your wallet URL with full access. You + can scan it from your phone to open your wallet from there. +