Thanks for that. Alot easier then overridding the MembershipProvider.
All I ended up doing was.
Change the usernamelabeltext to E-Mail:
double clicked the login box: added event handeler as bellow.
protected void Login1_Authenticate1(object sender, AuthenticateEventArgs e)
{
string user = Membership.GetUserNameByEmail(this.Login1.UserName);
if (System.Web.Security.Membership.ValidateUser(user, this.Login1.Password))
{
e.Authenticated = true;
}
else
{
e.Authenticated = false;
this.Login1.FailureText = "Incorrect username and password";
}
}
Cheers