Skip to content

Commit 10f1b63

Browse files
committed
Upgrade works for an administrator logging in with a local account
1 parent 5eb2776 commit 10f1b63

3 files changed

Lines changed: 7 additions & 8 deletions

File tree

ADefHelpDeskWebApp/Components/Pages/Application/Upgrade.razor

Lines changed: 0 additions & 6 deletions
This file was deleted.

ADefHelpDeskWebApp/Components/Pages/InstallUpgrade/InstallWizard.razor

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@
4949
{
5050
@if (WizardStage == "VerifyAdministrator")
5151
{
52-
<LoginControl />
52+
<p>You must be an administrator to upgrade the system.</p>
53+
<button class="btn btn-secondary" @onclick="LogIn">Click Here To Login</button>
5354
}
5455

5556
@if (WizardStage == "RunScripts")
@@ -154,6 +155,10 @@
154155
NavigationManager.NavigateTo(url, true);
155156
}
156157

158+
private void LogIn()
159+
{
160+
NavigationManager.NavigateTo("Authentication/logincontrol", forceLoad: true);
161+
}
157162
// Utility
158163
159164
public async Task<bool> IsAdminAsync()

ADefHelpDeskWebApp/appsettings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"ConnectionStrings": {
3-
"DefaultConnection": "data source=localhost;initial catalog=AdefHelpDeskInstall;integrated security=True;TrustServerCertificate=True;Connect Timeout=30;Encrypt=False;TrustServerCertificate=True;ApplicationIntent=ReadWrite;MultiSubnetFailover=False"
3+
"DefaultConnection": "data source=localhost;initial catalog=AdefHelpDesk;integrated security=True;TrustServerCertificate=True;Connect Timeout=30;Encrypt=False;TrustServerCertificate=True;ApplicationIntent=ReadWrite;MultiSubnetFailover=False"
44
},
55
"AppBasePath": "",
66
"Logging": {

0 commit comments

Comments
 (0)