From ec416a7fefe380705b5cd95855f6638a6a8f1c1b Mon Sep 17 00:00:00 2001 From: Shaun Walker Date: Sun, 14 Jun 2020 21:29:14 -0400 Subject: [PATCH] fix #595 - remove event log entry under scenario where a user is unauthenticated --- Oqtane.Client/UI/SiteRouter.razor | 1 - 1 file changed, 1 deletion(-) diff --git a/Oqtane.Client/UI/SiteRouter.razor b/Oqtane.Client/UI/SiteRouter.razor index 76874800..662202a7 100644 --- a/Oqtane.Client/UI/SiteRouter.razor +++ b/Oqtane.Client/UI/SiteRouter.razor @@ -277,7 +277,6 @@ { if (user == null) { - await LogService.Log(null, null, null, GetType().AssemblyQualifiedName, Utilities.GetTypeNameLastSegment(GetType().AssemblyQualifiedName, 1), LogFunction.Security, LogLevel.Error, null, "Page Does Not Exist Or User Is Not Authorized To View Page {Path}", path); // redirect to login page NavigationManager.NavigateTo(Utilities.NavigateUrl(alias.Path, "login", "returnurl=" + path)); }