From b816b1d172bbf16b033b26c46b3a4016371b23f3 Mon Sep 17 00:00:00 2001 From: Chika Date: Sat, 20 Feb 2021 16:19:47 +0300 Subject: [PATCH] move password to env --- ELT.Client/Kasko/KaskoManager.cs | 4 ++-- ELT/Properties/launchSettings.json | 19 ++++++++++++------- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/ELT.Client/Kasko/KaskoManager.cs b/ELT.Client/Kasko/KaskoManager.cs index 6a2fa9c..a51d3b2 100644 --- a/ELT.Client/Kasko/KaskoManager.cs +++ b/ELT.Client/Kasko/KaskoManager.cs @@ -19,8 +19,8 @@ namespace ELT.Client.Kasko { var authInfo = new AuthInfo { - Login = "dmitrienko", - Password = "12345" + Login = Environment.GetEnvironmentVariable("eltLogin"), + Password = Environment.GetEnvironmentVariable("eltPassword") }; var eltParams = calculateKaskoRequest.ELTParams; diff --git a/ELT/Properties/launchSettings.json b/ELT/Properties/launchSettings.json index 8570454..287fce0 100644 --- a/ELT/Properties/launchSettings.json +++ b/ELT/Properties/launchSettings.json @@ -11,24 +11,29 @@ "profiles": { "IIS Express": { "commandName": "IISExpress", - "launchBrowser": true, - "launchUrl": "weatherforecast", + "launchBrowser": false, "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" + "ASPNETCORE_ENVIRONMENT": "Development", + "eltPassword": "12345", + "eltLogin": "dmitrienko" } }, "ELT": { "commandName": "Project", - "launchBrowser": true, - "launchUrl": "weatherforecast", + "launchBrowser": false, "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" + "ASPNETCORE_ENVIRONMENT": "Development", + "eltPassword": "12345", + "eltLogin": "dmitrienko" }, "applicationUrl": "http://localhost:5000" }, "Docker": { "commandName": "Docker", - "launchUrl": "{Scheme}://{ServiceHost}:{ServicePort}/weatherforecast", + "environmentVariables": { + "eltPassword": "12345", + "eltLogin": "dmitrienko" + }, "publishAllPorts": true } }