diff options
author | Grigorii Zimin <gzimin@luxoft.com> | 2019-05-22 17:20:54 +0300 |
---|---|---|
committer | Grigorii Zimin <gzimin@luxoft.com> | 2019-05-23 13:03:34 +0000 |
commit | 018103fe5a4534cf22281e26d492d61d27b18e4c (patch) | |
tree | 87715daf0926d515840c88cb1a7d158c6392b4c2 /apps/com.pelagicore.downloads/stores/ServerConfig.qml | |
parent | 53cd30a48aa706a64facb5e091cc1f8318a0b387 (diff) |
[downloads] move hardcoded properties to config file
Task-number: AUTOSUITE-979
Change-Id: I08e4ddc112b87a0d32ca3e4bd090731278c90851
Reviewed-by: Bramastyo Harimukti Santoso <bramastyo.harimukti.santoso@pelagicore.com>
Diffstat (limited to 'apps/com.pelagicore.downloads/stores/ServerConfig.qml')
-rw-r--r-- | apps/com.pelagicore.downloads/stores/ServerConfig.qml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/com.pelagicore.downloads/stores/ServerConfig.qml b/apps/com.pelagicore.downloads/stores/ServerConfig.qml index 45c1a97d..198f57a0 100644 --- a/apps/com.pelagicore.downloads/stores/ServerConfig.qml +++ b/apps/com.pelagicore.downloads/stores/ServerConfig.qml @@ -43,6 +43,9 @@ QtObject { property string serverReason property string cpuArch property string serverUrl: ApplicationManager.systemProperties.appStoreServerUrl + property string userName: ApplicationManager.systemProperties.userName + property string userPassword: ApplicationManager.systemProperties.userPassword + readonly property string imei: ApplicationManager.systemProperties.imei signal loginSuccessful() @@ -75,7 +78,7 @@ QtObject { function login() { var url = serverUrl + "/login" - var data = { "username" : "t", "password" : "t", "imei" : "112163001487801" } + var data = { "username" : userName, "password" : userPassword, "imei" : imei } JSONBackend.serverCall(url, data, function(data) { if (data !== 0) { if (data.status === "ok") { |