fix #2125 - cannot login using WebAssembly, remove granular 404 logging as it is already managed by url mapping, make IModule ReleaseVersions optional when using EF Core migrations
This commit is contained in:
@ -163,7 +163,8 @@
|
||||
|
||||
if (!twofactor)
|
||||
{
|
||||
user = await UserService.LoginUserAsync(user, false, false);
|
||||
bool setCookie = (PageState.Runtime == Oqtane.Shared.Runtime.WebAssembly);
|
||||
user = await UserService.LoginUserAsync(user, setCookie, false);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -260,7 +260,6 @@
|
||||
{
|
||||
if (route.PagePath != "404")
|
||||
{
|
||||
await LogService.Log(null, null, user.UserId, "SiteRouter", "SiteRouter", LogFunction.Other, LogLevel.Information, null, "Page Path /{Path} Does Not Exist Or User Is Not Authorized To View", route.PagePath);
|
||||
// redirect to 404 page
|
||||
NavigationManager.NavigateTo(Utilities.NavigateUrl(SiteState.Alias.Path, "404", ""));
|
||||
}
|
||||
|
Reference in New Issue
Block a user