Remove ln_login from users
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

Not needed anymore, removing in favor of unencrypted `ln_account`.
This commit is contained in:
Râu Cao
2023-02-23 20:13:08 +08:00
parent 84337c3a7d
commit 3c2fe7c15d
8 changed files with 12 additions and 9 deletions

View File

@@ -2,7 +2,7 @@ class Lndhub
attr_accessor :auth_token
def initialize
@base_url = ENV["LNDHUB_LEGACY_API_URL"]
@base_url = ENV["LNDHUB_API_URL"]
end
def post(endpoint, payload)
@@ -42,7 +42,7 @@ class Lndhub
end
def authenticate(user)
credentials = post "auth?type=auth", { login: user.ln_login, password: user.ln_password }
credentials = post "auth?type=auth", { login: user.ln_account, password: user.ln_password }
self.auth_token = credentials["access_token"]
self.auth_token
end

View File

@@ -39,7 +39,7 @@ class LndhubV2
end
def authenticate(user)
credentials = post "auth?type=auth", { login: user.ln_login, password: user.ln_password }
credentials = post "auth?type=auth", { login: user.ln_account, password: user.ln_password }
self.auth_token = credentials["access_token"]
self.auth_token
end