[feat] add default_user_extensions setting (#2571)

* feat: add `lnbits_user_default_extensions` to `settings`

* refactor: extract `create_user_account` in services

* feat: auto enable user extensions
This commit is contained in:
Vlad Stan 2024-07-09 15:55:05 +03:00 committed by GitHub
parent fb17611207
commit b2564154cd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 143 additions and 131 deletions

View file

@ -162,6 +162,8 @@ LNBITS_ADMIN_USERS=""
# Extensions only admin can access
LNBITS_ADMIN_EXTENSIONS="ngrok, admin"
# Extensions enabled by default when a user is created
LNBITS_USER_DEFAULT_EXTENSIONS="lnurlp"
# Start LNbits core only. The extensions are not loaded.
# LNBITS_EXTENSIONS_DEACTIVATE_ALL=true