Skip to content

Commit

Permalink
Fix login
Browse files Browse the repository at this point in the history
  • Loading branch information
Foxocube committed Jan 4, 2025
1 parent d481913 commit 0a55022
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,6 @@

protected override async Task OnInitializedAsync()
{
ArgumentNullException.ThrowIfNull(HttpContext);

if (RemoteError is not null)
{
RedirectManager.RedirectToWithStatus("Account/Login", $"Error from external provider: {RemoteError}", HttpContext);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

if (_externalLogins.Length == 1)
{
var url = $"/PerformExternalLogin/{_externalLogins[0].Name}?returnUrl={ReturnUrl}";
var url = $"/Account/PerformExternalLogin/{_externalLogins[0].Name}?returnUrl={ReturnUrl}";
RedirectManager.RedirectTo(url);
}
}
Expand Down

0 comments on commit 0a55022

Please sign in to comment.