PTracker project and PTMembershipProvider

PTracker project and PTMembershipProvider

Old forum URL: forums.lhotka.net/forums/t/5558.aspx


Rizshe posted on Thursday, October 09, 2008

Hi,

I have created my own membership provider implementing the same sort of functionality apart that I have .net version 3.5

The only change I have is that I'm passing the username in code in the membership provider class

public override bool ValidateUser(String username, String password)

{

String myusername = "myuser";

bool result = UserPrincipal.Login(myusername);

HttpContext.Current.Session["CslaPrincipal"] = Csla.ApplicationContext.User;

return result;

}

The problem is that this code doesn't run at all. Since in .net framework 3.5 you don't have app_code folder so I even tried creating the folder and then check it but this doesn't work. My webconfig is the same as PT Web so i don't really see where i'm going wrong?

Any ideas?
Cheers

Rizwan

Copyright (c) Marimer LLC