move password to env

This commit is contained in:
Chika 2021-02-20 16:19:47 +03:00
parent 8c3c95c9a5
commit b816b1d172
2 changed files with 14 additions and 9 deletions

View File

@ -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;

View File

@ -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
}
}