File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed
Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -5,21 +5,23 @@ namespace webapp01.Pages;
55
66public 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}
Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments