Skip to content

Commit

Permalink
Fix server not being set when logging in from UI
Browse files Browse the repository at this point in the history
  • Loading branch information
quexten committed May 11, 2024
1 parent f869e9a commit 3fa3ec2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gui/src/gui/login.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def on_login(self):
client_id = self.client_id_row.get_text()
client_secret = self.client_secret_row.get_text()
server = self.server_row.get_text()
goldwarden.set_url(server)
print("setting server to", server, "with result", goldwarden.set_server(server))
if client_id != "":
goldwarden.set_client_id(client_id)
if client_secret != "":
Expand Down
3 changes: 3 additions & 0 deletions gui/src/gui/quickaccess.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ def key_press(self, event, keyval, keycode, state):
auto_type_combo = state & Gdk.ModifierType.CONTROL_MASK and state & Gdk.ModifierType.SHIFT_MASK
copy_combo = state & Gdk.ModifierType.CONTROL_MASK and not state & Gdk.ModifierType.SHIFT_MASK

if not len(self.filtered_logins) > 0:
return

# totp code
if keyval == Gdk.KEY_t or keyval == Gdk.KEY_T:
if self.filtered_logins[self.selected_index]["totp"] == "":
Expand Down
4 changes: 2 additions & 2 deletions gui/src/services/goldwarden.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ def set_notification_url(url):
def set_vault_url(url):
send_authenticated_command(f"config set-vault-url {url}")

def set_url(url):
send_authenticated_command(f"config set-url {url}")
def set_server(url):
send_authenticated_command(f"config set-server {url}")

def get_environment():
result = send_authenticated_command(f"config get-environment")
Expand Down

0 comments on commit 3fa3ec2

Please sign in to comment.