Move lndhub admin token to env var/setting

This commit is contained in:
Râu Cao
2023-09-04 15:36:22 +02:00
parent 8349ca5e12
commit 725fd2e5ea
3 changed files with 33 additions and 24 deletions

View File

@@ -14,7 +14,7 @@ class LndhubV2 < Lndhub
end
def create_account(payload={})
post "v2/users", payload, admin_token: Rails.application.credentials.lndhub[:admin_token]
post "v2/users", payload, admin_token: Setting.lndhub_admin_token
end
def create_invoice(payload)