Hi,
I set my authentication and MemberShip provider to work with:
- Email activation for using isApproved
- Locked User, after passing the number of trying to login
I set the Login1_LoginError to replay the correct msg each time.
my problem is:
Let say user: User1 is not Approved it,
So, When he enter his user name and password it showing him the correct error msg,
but also when he entered not his correct password.
how can I fix it, to show those error msg - Locked User / not approved User
only when entering the right password,
and not just by the username?
this is my Login1_LoginError func:
MembershipUser userInfo = Membership.GetUser(Login1.UserName);
if (userInfo == null)
{
Error.Text = "Password / username Wrong";
}
//See if the user is locked out or not approved
else if (!userInfo.IsApproved ...
Go to the complete details ...