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
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
is working on a reply...