Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Login user experience when running on WebAssembly and address Logout scenario #1114

Merged
merged 2 commits into from
Feb 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions Oqtane.Client/Modules/Admin/Login/Index.razor
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,6 @@
<ModuleMessage Message="@_message" Type="@_type" />
}
<AuthorizeView>
<Authorizing>
<text>...</text>
</Authorizing>
<Authorized>
<ModuleMessage Message="You Are Already Logged In" Type="MessageType.Info" />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!! I was planning to do it, but finally it's done by someone else ;)

</Authorized>
<NotAuthorized>
<div class="container Oqtane-Modules-Admin-Login">
<div class="form-group">
Expand Down
1 change: 1 addition & 0 deletions Oqtane.Client/Themes/Controls/LoginBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ protected void LoginUser()
protected async Task LogoutUser()
{
await UserService.LogoutUserAsync(PageState.User);
PageState.User = null;

if (PageState.Runtime == Oqtane.Shared.Runtime.Server)
{
Expand Down