소스 검색

BT6706: change default password

balbekova 7 년 전
부모
커밋
a6436da76c
1개의 변경된 파일8개의 추가작업 그리고 0개의 파일을 삭제
  1. 8 0
      modules/settings_api.c

+ 8 - 0
modules/settings_api.c

@@ -152,13 +152,21 @@ void SETTINGS_SetServiceDef(void)
         case 0:
             sSettings.sAuth[user_id].level = ADMIN;
             strcpy(sSettings.sAuth[user_id].login, "admin");
+#ifdef HARDWARE_BT6706
+            strcpy(sSettings.sAuth[user_id].password, "12345");
+#elif HARDWARE_BT6702
             strcpy(sSettings.sAuth[user_id].password, "R04ekR4MP2");
+#endif
             break;
         case 1:
         default:
         	sSettings.sAuth[user_id].level = USER;
             strcpy(sSettings.sAuth[user_id].login, "user");
+#ifdef HARDWARE_BT6706
+            strcpy(sSettings.sAuth[user_id].password, "1234");
+#elif HARDWARE_BT6702
             strcpy(sSettings.sAuth[user_id].password, "R03ekR4MP2");
+#endif
             break;
         }
     }