Skip to content

Commit

Permalink
use global variable; add credsfile path to login
Browse files Browse the repository at this point in the history
  • Loading branch information
desvox committed May 13, 2024
1 parent 280bc3d commit b5aa3f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions clients/urwid/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1426,7 +1426,7 @@ def change_username(self, *_):
name = nameloop("Choose a new username", True)
network.user_update(user_name=name)
print_rainbows("~~hello there %s~~" % name)
if credentials_file():
if credentials_file_enabled:
credentials_file(update_credentials=True)
sleep(0.8)
self.loop.start()
Expand All @@ -1444,7 +1444,7 @@ def change_password(self, *_):
password = password_loop("Choose a new password. Can be empty", True)
network.user_update(auth_hash=network._hash(password))
print_rainbows("SET NEW PASSWORD")
if credentials_file():
if credentials_file_enabled:
credentials_file(update_credentials=True)
sleep(0.8)
self.loop.start()
Expand Down Expand Up @@ -2614,7 +2614,7 @@ def log_in(relog=False):
# this function sets the network auth settings, so no
# further action is needed
if not relog and credentials_file():
print("Logged in with credentials file!")
print("Logged in with credentials file! [%s]" % credspath)
sleep(0.5) # show the message for a moment
return
if relog:
Expand Down

0 comments on commit b5aa3f3

Please sign in to comment.