Skip to content

Commit

Permalink
Merge pull request #688 from DuendeSoftware/brock/ui_fixes
Browse files Browse the repository at this point in the history
Cleanup on the UI quickstart code based on template feedback
  • Loading branch information
brockallen authored Jan 25, 2022
2 parents f1d2be7 + 645b46d commit fa10b2f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion hosts/AspNetIdentity/Pages/Account/Login/Index.cshtml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public async Task<IActionResult> OnGet(string returnUrl)
if (View.IsExternalLoginOnly)
{
// we only have one option for logging in and it's an external provider
return RedirectToPage("/ExternalLogin/Challenge/Index", new { scheme = View.ExternalLoginScheme, returnUrl });
return RedirectToPage("/ExternalLogin/Challenge", new { scheme = View.ExternalLoginScheme, returnUrl });
}

return Page();
Expand Down Expand Up @@ -164,6 +164,8 @@ private async Task BuildModelAsync(string returnUrl)
{
View.ExternalProviders = new[] { new ViewModel.ExternalProvider { AuthenticationScheme = context.IdP } };
}

return;
}

var schemes = await _schemeProvider.GetAllSchemesAsync();
Expand Down
4 changes: 3 additions & 1 deletion hosts/EntityFramework/Pages/Account/Login/Index.cshtml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public async Task<IActionResult> OnGet(string returnUrl)
if (View.IsExternalLoginOnly)
{
// we only have one option for logging in and it's an external provider
return RedirectToPage("/ExternalLogin/Challenge/Index", new { scheme = View.ExternalLoginScheme, returnUrl });
return RedirectToPage("/ExternalLogin/Challenge", new { scheme = View.ExternalLoginScheme, returnUrl });
}

return Page();
Expand Down Expand Up @@ -184,6 +184,8 @@ private async Task BuildModelAsync(string returnUrl)
{
View.ExternalProviders = new[] { new ViewModel.ExternalProvider { AuthenticationScheme = context.IdP } };
}

return;
}

var schemes = await _schemeProvider.GetAllSchemesAsync();
Expand Down
4 changes: 3 additions & 1 deletion hosts/main/Pages/Account/Login/Index.cshtml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public async Task<IActionResult> OnGet(string returnUrl)
if (View.IsExternalLoginOnly)
{
// we only have one option for logging in and it's an external provider
return RedirectToPage("/ExternalLogin/Challenge/Index", new { scheme = View.ExternalLoginScheme, returnUrl });
return RedirectToPage("/ExternalLogin/Challenge", new { scheme = View.ExternalLoginScheme, returnUrl });
}

return Page();
Expand Down Expand Up @@ -184,6 +184,8 @@ private async Task BuildModelAsync(string returnUrl)
{
View.ExternalProviders = new[] { new ViewModel.ExternalProvider { AuthenticationScheme = context.IdP } };
}

return;
}

var schemes = await _schemeProvider.GetAllSchemesAsync();
Expand Down

0 comments on commit fa10b2f

Please sign in to comment.