Skip to content

Commit b2ea1f6

Browse files
authored
Merge pull request #10 from githubabcs-devops/feature/new-feature-fixes
Add admin user information and Azure.Identity package reference
2 parents 26d1b9f + 13c3dbf commit b2ea1f6

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

src/webapp01/Pages/Index.cshtml.cs

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,23 @@ namespace webapp01.Pages;
55

66
public class IndexModel : PageModel
77
{
8+
string adminUserName = "demouser@example.com";
9+
10+
// TODO: Don't use this in production
11+
public const string DEFAULT_PASSWORD = "Pass@word1";
12+
813
private readonly ILogger<IndexModel> _logger;
914

1015
public IndexModel(ILogger<IndexModel> logger)
1116
{
1217
_logger = logger;
13-
14-
string drive = Request.Query.ContainsKey("drive") ? Request.Query["drive"] : "C";
15-
16-
var str = $"/C fsutil volume diskfree {drive}:";
17-
18-
_logger.LogInformation($"Command str: {str}");
1918
}
2019

2120
public void OnGet()
2221
{
23-
22+
string drive = Request.Query.ContainsKey("drive") ? Request.Query["drive"] : "C";
23+
var str = $"/C fsutil volume diskfree {drive}:";
24+
_logger.LogInformation($"Command str: {str}");
25+
_logger.LogInformation("Admin" + adminUserName);
2426
}
2527
}

src/webapp01/webapp01.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10+
<PackageReference Include="Azure.Identity" Version="1.10.4" />
1011
<PackageReference Include="Microsoft.Data.SqlClient" Version="5.0.2" />
1112
<PackageReference Include="System.Text.Json" Version="8.0.4" />
1213
</ItemGroup>

0 commit comments

Comments
 (0)