Merge pull request #613 from sbwalker/master

fix #595 - remove event log entry under scenario where a user is unauthenticated
This commit is contained in:
Shaun Walker 2020-06-14 21:31:01 -04:00 committed by GitHub
commit 048d8f1b87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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));
}