This commit is contained in:
ed
2023-11-04 21:58:01 +00:00
parent 65e4d67c3e
commit dabdaaee33
5 changed files with 27 additions and 5 deletions

View File

@@ -2143,8 +2143,10 @@ class HttpCli(object):
return True
def get_pwd_cookie(self, pwd: str) -> str:
if self.asrv.ah.hash(pwd) in self.asrv.iacct:
msg = "login ok"
hpwd = self.asrv.ah.hash(pwd)
uname = self.asrv.iacct.get(hpwd)
if uname:
msg = "hi " + uname
dur = int(60 * 60 * self.args.logout)
else:
logpwd = pwd