Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Liam Dilley 172 posts 402 karma points
    Apr 10, 2024 @ 04:02
    Liam Dilley
    0

    Member.IsAproved Not working?

    Hi all, I have a custom login service. I create a member or use an existing one and everyone works. I have:

    IMember umbracoMember
    

    And I do this:

    umbracoMember.IsApproved = true;
    _memberService.Save(umbracoMember);
    

    And when I inspect it is approved: enter image description here

    But when logged in and then navigating to secure pages that fails. Viewing the member in the backoffice they are NOT approved.

    Anyone have any insights to what the issue may be?

  • Liam Dilley 172 posts 402 karma points
    Apr 10, 2024 @ 05:02
    Liam Dilley
    0

    I found that the only way this is set now is By creating a MemberIdentityUser from the IMember and then doing .IsApproved on that. Not sure if this is intended or not, feels like a bug if IMember has .IsApproved but it does not actually work.

Please Sign in or register to post replies

Write your reply to:

Draft