password_hashがあったときの処理を修正
This commit is contained in:
parent
86a4ef8766
commit
e585e9d596
1 changed files with 2 additions and 2 deletions
|
@ -58,10 +58,10 @@ class Auth():
|
|||
|
||||
if "password_hash" in kwargs:
|
||||
password_hash = str(kwargs["password_hash"])
|
||||
cursor.execute("SELECT * FROM pc_list WHERE pc_number = %s AND pc_uuid = %s AND pc_token = %s", (pc_number, pc_uuid, pc_token))
|
||||
cursor.execute("SELECT * FROM pc_list WHERE pc_number = %s AND password_hash = %s AND pc_uuid = %s AND pc_token = %s", (pc_number, password_hash, pc_uuid, pc_token))
|
||||
pc_info = cursor.fetchall()
|
||||
else:
|
||||
cursor.execute("SELECT * FROM pc_list WHERE pc_number = %s AND password_hash = %s AND pc_uuid = %s AND pc_token = %s", (pc_number, password_hash, pc_uuid, pc_token))
|
||||
cursor.execute("SELECT * FROM pc_list WHERE pc_number = %s AND pc_uuid = %s AND pc_token = %s", (pc_number, pc_uuid, pc_token))
|
||||
pc_info = cursor.fetchall()
|
||||
|
||||
if pc_info:
|
||||
|
|
Loading…
Reference in a new issue