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

V13: Allow anonymous calls for UmbLoginStatusController.HandleLogout action #17807

Open
wants to merge 1 commit into
base: release/13.6
Choose a base branch
from

Conversation

elit0451
Copy link
Member

Details

Test

  • Create RegisterMember.cshtml partial view from snippet;
  • Create Login.cshtml partial view from snippet;
  • Create LoginStatus.cshtml partial view from snippet;
  • Create a doc type contentPage and in its template add:
@using Umbraco.Cms.Web.Common.PublishedModels;
@using Umbraco.Cms.Core.Services;
@inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage<ContentModels.ContentPage>
@inject IMemberService MemberService
@using ContentModels = Umbraco.Cms.Web.Common.PublishedModels;
@{
	Layout = null;
	var isLoggedIn = Context.User?.Identity?.IsAuthenticated ?? false;
}

@if (!isLoggedIn)
{
    @await Html.PartialAsync("RegisterMember")
    <hr/>
    <br/>
    @await Html.PartialAsync("Login")
}
else
{
    @await Html.PartialAsync("LoginStatus")
}
  • Register a member - you will be logged in;
  • Verify that you can logout when the member still exists;
  • Login again;
  • Delete the member from the backoffice;
  • Verify that you are able to logout with the member after deletion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant