chenjunkai 6 年之前
父節點
當前提交
1a71ed804d
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      Controller/EquipmentManager.py

+ 1 - 2
Controller/EquipmentManager.py

@@ -33,9 +33,8 @@ def addNewUserEquipment(userID, deviceContent, response):
                             if is_bind:
                                 # return response.json(175)
                                 # 判断用户密码是否正确
-                                dev_user = deviceData.get('View_Account', '')
                                 dev_pass = deviceData.get('View_Password', '')
-                                if is_bind[0].View_Account == dev_user and is_bind[0].View_Password == dev_pass:
+                                if is_bind[0].View_Password == dev_pass:
                                     deviceData['NickName'] = is_bind[0].NickName
                                     if 'isShare' in deviceData:
                                         deviceData['isShare'] = True