Skip to content

Commit c8ae00b

Browse files
authored
clear password from TUI input after use (#717)
* clear password from input after use and fix docstring typo * move password clear to after page transition
1 parent 4b791e1 commit c8ae00b

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

datashuttle/tui/screens/setup_ssh.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ def use_password_to_setup_ssh_key_pairs(self) -> None:
190190
)
191191
self.failed_password_attempts += 1
192192

193+
self.query_one("#setup_ssh_password_input").value = ""
193194
self.query_one("#messagebox_message_label").update(message)
194195

195196
def try_setup_rclone_encryption(self):

datashuttle/utils/ssh.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ def save_hostkey_locally(key, central_host_id, hostkeys_path) -> None:
249249

250250

251251
def get_remote_server_key(central_host_id: str):
252-
"""Get the remove server host key for validation before connection.
252+
"""Get the remote server host key for validation before connection.
253253
254254
Parameters
255255
----------

0 commit comments

Comments
 (0)