From 39cbef6fe528a0f3bb2b878ff2ff6b55a000e67b Mon Sep 17 00:00:00 2001 From: wufayuan <2858767122@qq.com> Date: Sun, 3 Jul 2022 17:18:04 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BE=83=E4=B8=BA=E5=AE=8C=E6=95=B4=E7=9A=84?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dcs/tools/database.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dcs/tools/database.py b/dcs/tools/database.py index 176ebde..e3c3d8a 100644 --- a/dcs/tools/database.py +++ b/dcs/tools/database.py @@ -65,9 +65,10 @@ def get_now(): def login(u_name, u_pwd, st): - s1 = sha1() - s1.update(u_pwd.encode()) - sha_pwd = s1.hexdigest() + # s1 = sha1() + # s1.update(u_pwd.encode()) + # sha_pwd = s1.hexdigest() + sha_pwd = u_pwd try: conn = mysql_conn() cur = conn.cursor()