Copied to clipboard

Flag this post as spam?

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


  • Justin Moore 41 posts 100 karma points
    Sep 02, 2010 @ 03:20
    Justin Moore
    0

    umbraco.library:GetCurrentMember with AspNetSqlMembershipProvider

    Just want to check I'm not missing something, does umbraco.library:GetCurrentMember() not work if you're using AspNetSqlMembershipProvider?

    I've seen examples using the snippet below, but when I use this I get no CurrentMember, IsLoggedOn returns true but no member returned.

    Should I be writing my own XSLT extension for this?

     <xsl:choose>
      <xsl:when test="umbraco.library:IsLoggedOn() = true()">
       You are logged in as 
        <p>
          <xsl:variable name="user" select="umbraco.library:GetCurrentMember()/@loginName"/>
          <xsl:value-of select="$user"/>
        </p>
      </xsl:when>
      <xsl:otherwise>
       You are not logged in.

      </xsl:otherwise>
  • Aaron Powell 1708 posts 3046 karma points c-trib
    Sep 02, 2010 @ 05:10
    Aaron Powell
    0

    You'll have to write your own extension for it, umbraco.library doesn't use the MembershipProvider for accessing the member, it still uses the old API.

Please Sign in or register to post replies

Write your reply to:

Draft