public static bool Login(string userNameOrEmail, string password, bool persistCookie)
{
CodeFirstExtendedProvider provider = VerifyProvider();
dynamic success = provider.ExtendedValidateUser(userNameOrEmail, password);
if (!(string.IsNullOrEmpty(success)))
{
FormsAuthentication.SetAuthCookie(success, persistCookie);
return true;
}
else
{
return false;
}
}