Hi,
I set on CreateUserWizard the DisableCreateUser to True.
Now for checking if the user is approve when his logging,
I set this in: Login1_Authenticate (the Login Control Auth.)
if (Membership.ValidateUser(Login1.UserName ,Login1.Password))
{
MembershipUser mu = Membership.GetUser(Login1.UserName);
if(mu.IsApproved)
{
e.Authenticated = true;
}
else
{
Login1.FailureText = "Your account is not activated, please activate your account through the email we sent you";
}
}
else
{
e.Authenticated = false;
}
But it's not working,
it's not even enter the if.
What I do wrong?
Is there another way doing it?
How to fix it?
Thanks...
...
Go to the complete details ...