fix #595 - remove event log entry under scenario where a user is unauthenticated

This commit is contained in:
Shaun Walker 2020-06-14 21:29:14 -04:00
parent 42696eacbd
commit ec416a7fef

View File

@ -277,7 +277,6 @@
{ {
if (user == null) 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 // redirect to login page
NavigationManager.NavigateTo(Utilities.NavigateUrl(alias.Path, "login", "returnurl=" + path)); NavigationManager.NavigateTo(Utilities.NavigateUrl(alias.Path, "login", "returnurl=" + path));
} }