From 8d0ee82645ced967e82a2d46988d4193040bd70f Mon Sep 17 00:00:00 2001 From: yellowbean Date: Tue, 25 Jul 2023 11:43:49 +0800 Subject: [PATCH] WIP: Expose msg from login library --- absbox/client.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/absbox/client.py b/absbox/client.py index 82426f8..24c1a53 100644 --- a/absbox/client.py +++ b/absbox/client.py @@ -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): @@ -290,4 +290,4 @@ def _send_req(self,_req,_url,timeout=10,headers={})->dict: console.print(e) console.rule() return None - \ No newline at end of file +