From 7c479a3ebf32408bf82572cdcdc72c2686c40089 Mon Sep 17 00:00:00 2001 From: Perlover Date: Thu, 15 Jun 2023 15:34:39 +0200 Subject: [PATCH] Hide the superuser ID URL from logs with comment where to find superuser ID (#1749) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Hide the superuser ID URL from logs with comment where to find admin ID * Update admin_ui.md --------- Co-authored-by: dni ⚡ --- docs/guide/admin_ui.md | 11 ++++++----- lnbits/core/services.py | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/docs/guide/admin_ui.md b/docs/guide/admin_ui.md index 95edcb4ae..3d3077f36 100644 --- a/docs/guide/admin_ui.md +++ b/docs/guide/admin_ui.md @@ -55,11 +55,12 @@ Now start LNbits once in the terminal window ``` $ poetry run lnbits ``` -It will now show you the Super User Account: - -`SUCCESS | ✔️ Access super user account at: https://127.0.0.1:5000/wallet?usr=5711d7..` - -The `/wallet?usr=..` is your super user account. You just have to append it to your normal LNbits web domain. +You can now `cat` the Super User ID: +``` +$ cat .super_user +123de4bfdddddbbeb48c8bc8382fe123 +``` +You can access your super user account at `/wallet?usr=super_user_id`. You just have to append it to your normal LNbits web domain. After that you will find the __`Admin` / `Manage Server`__ between `Wallets` and `Extensions` diff --git a/lnbits/core/services.py b/lnbits/core/services.py index 85a90c5a2..6433488ad 100644 --- a/lnbits/core/services.py +++ b/lnbits/core/services.py @@ -469,7 +469,7 @@ async def check_admin_settings(): for key, value in settings.dict(exclude_none=True).items(): logger.debug(f"{key}: {value}") - admin_url = f"{settings.lnbits_baseurl}wallet?usr={settings.super_user}" + admin_url = f'{settings.lnbits_baseurl}wallet?usr=' logger.success(f"✔️ Access super user account at: {admin_url}") # saving it to .super_user file