i think my problem is in the header where it checks if it's authenticated. cause it never hits that point and procedes as if user never logged in. not sure why it's not authenticating. cause I can add new user and login in with correct email and password and also get error if i supply wrong password or emial address.
this is the code I have in Phile base
private void PhilePage_Load(object sender, System.EventArgs e)
{
if (Context.User.Identity.IsAuthenticated)
{
if (!(Context.User is PhilePrincipal))
{
PhilePrincipal newUser = new PhilePrincipal(Context.User.Identity.Name);
Context.User = newUser;
}
}
if anyone can help, I would really appreciate it.
|