新規PCが登録できないバグを修正
This commit is contained in:
parent
a0056ef2c4
commit
9e01485e0a
1 changed files with 5 additions and 5 deletions
|
@ -305,12 +305,12 @@ class Auth():
|
|||
pc_number = int(kwargs["pc_number"])
|
||||
pc_uuid = str(kwargs["pc_uuid"])
|
||||
cursor.execute("SELECT pc_uuid FROM pc_list WHERE pc_number = %s", (pc_number,))
|
||||
pc_record = cursor.fetchall()
|
||||
pc_record_uuid = pc_record[0][0]
|
||||
pc_record_uuid_source = cursor.fetchall()
|
||||
pc_record_uuid = pc_record_uuid_source[0][0]
|
||||
cursor.execute("SELECT pc_number FROM pc_list WHERE pc_number = %s", (pc_number,))
|
||||
pc_record = cursor.fetchall()
|
||||
pc_record_number = pc_record[0][0]
|
||||
if pc_record_number == None:
|
||||
pc_record_number_source = cursor.fetchall()
|
||||
|
||||
if pc_record_number_source == None:
|
||||
pc_token = self.token_generate(36)
|
||||
master_password = self.master_password_generate(16)
|
||||
master_password_hash = self.hash_genarate(master_password)
|
||||
|
|
Loading…
Reference in a new issue