From 0a55022a5861e910bb77d75330048cf270655c28 Mon Sep 17 00:00:00 2001 From: Foxocube Date: Sat, 4 Jan 2025 17:49:12 +0000 Subject: [PATCH] Fix login --- .../MediaFeeder/Components/Account/Pages/ExternalLogin.razor | 2 -- .../Components/Account/Shared/ExternalLoginPicker.razor | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/MediaFeeder/MediaFeeder/Components/Account/Pages/ExternalLogin.razor b/MediaFeeder/MediaFeeder/Components/Account/Pages/ExternalLogin.razor index 6c23d75..75a03d6 100644 --- a/MediaFeeder/MediaFeeder/Components/Account/Pages/ExternalLogin.razor +++ b/MediaFeeder/MediaFeeder/Components/Account/Pages/ExternalLogin.razor @@ -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); diff --git a/MediaFeeder/MediaFeeder/Components/Account/Shared/ExternalLoginPicker.razor b/MediaFeeder/MediaFeeder/Components/Account/Shared/ExternalLoginPicker.razor index 5c33d3e..a864d78 100644 --- a/MediaFeeder/MediaFeeder/Components/Account/Shared/ExternalLoginPicker.razor +++ b/MediaFeeder/MediaFeeder/Components/Account/Shared/ExternalLoginPicker.razor @@ -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); } }