mirror of
https://github.com/oqtane/oqtane.framework.git
synced 2025-05-19 02:54:22 +00:00
update the if condition.
This commit is contained in:
parent
82f25cc2e5
commit
6d41bcd511
@ -545,7 +545,9 @@
|
|||||||
url = PageState.Alias.Path;
|
url = PageState.Alias.Path;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (PageState.Runtime == Shared.Runtime.Hybrid && PageState.User != null)
|
if (PageState.Runtime == Shared.Runtime.Hybrid)
|
||||||
|
{
|
||||||
|
if (PageState.User != null)
|
||||||
{
|
{
|
||||||
// hybrid apps utilize an interactive logout
|
// hybrid apps utilize an interactive logout
|
||||||
await UserService.LogoutUserAsync(PageState.User);
|
await UserService.LogoutUserAsync(PageState.User);
|
||||||
@ -553,6 +555,7 @@
|
|||||||
authstateprovider.NotifyAuthenticationChanged();
|
authstateprovider.NotifyAuthenticationChanged();
|
||||||
NavigationManager.NavigateTo(url, true);
|
NavigationManager.NavigateTo(url, true);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// post to the Logout page to complete the logout process
|
// post to the Logout page to complete the logout process
|
||||||
|
Loading…
x
Reference in New Issue
Block a user