Skip to content

Commit

Permalink
WIP: Expose msg from login library
Browse files Browse the repository at this point in the history
  • Loading branch information
yellowbean committed Jul 25, 2023
1 parent 8b442ba commit 8d0ee82
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions absbox/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,10 @@ def loginLibrary(self, user, pw, **q):
cred = {"user":user,"password":pw}
r = self._send_req(json.dumps(cred), deal_library_url)
if 'token' in r:
console.print(f"✅[bold green] login successfully")
console.print(f"✅[bold green] login successfully,{r[msg]}")
self.token = r['token']
else:
console.print(f"❌[bold red]Failed to login")
console.print(f"❌[bold red]Failed to login,{r[msg]}")
return None

def safeLogin(self, user, **q):
Expand Down Expand Up @@ -290,4 +290,4 @@ def _send_req(self,_req,_url,timeout=10,headers={})->dict:
console.print(e)
console.rule()
return None


0 comments on commit 8d0ee82

Please sign in to comment.