Copied to clipboard

Flag this post as spam?

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


  • stefan 4 posts 24 karma points
    May 28, 2013 @ 14:04
    stefan
    0

    Members.Count = 0

    Hi all,

    i have to create an auto login into the administration area ... so i need to validate my currently loged user with the useres defined within the administration.Users.

    I tried some approaches to access this administration.Users, but the resulting collection was allways empty:

        MembershipUserCollection muc = System.Web.Security.Membership.GetAllUsers();
        foreach (MembershipUser m in muc)

       {   

            Response.Write( "
    MUC:" + m.Email);
       }

     

        foreach(Member m in Member.GetAllAsList())

        {

            Response.Write("
    GetALll:" + m.Email);

        }

     

        MembershipUser mu = Membership.GetUser( v.Identity.Email );

        if (mu != null)

        {

            Response.Write(mu.UserName);

        }

     

        var members = uQuery.GetMembersByXPath("//*");

        foreach (Member m in members)

        {
    Response.Write("uQ:" + m.Email);
        }

    Any help is highly appreciated :)

     

    P.S: Umbraco 6.0.5 , code above resides as test in login.aspx

Please Sign in or register to post replies

Write your reply to:

Draft