Hide the superuser ID URL from logs with comment where to find superuser ID (#1749)

* Hide the superuser ID URL from logs with comment where to find admin ID
* Update admin_ui.md

---------

Co-authored-by: dni  <office@dnilabs.com>
This commit is contained in:
Perlover 2023-06-15 15:34:39 +02:00 committed by GitHub
parent 9017cee491
commit 7c479a3ebf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 6 deletions

View File

@ -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`

View File

@ -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=<ID from ".super_user" file>'
logger.success(f"✔️ Access super user account at: {admin_url}")
# saving it to .super_user file