namespace OpenIdProviderMvc.Code {
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;
public interface IMembershipService {
///
/// Gets the length of the min password.
///
int MinPasswordLength { get; }
///
/// Validates the user.
///
/// Name of the user.
/// The password.
/// Whether the given username and password is correct.
bool ValidateUser(string userName, string password);
///
/// Creates a new user account.
///
/// Name of the user.
/// The password.
/// The email.
/// The success or reason for failure of account creation.
MembershipCreateStatus CreateUser(string userName, string password, string email);
///
/// Changes the password for a user.
///
/// Name of the user.
/// The old password.
/// The new password.
/// A value indicating whether the password change was successful.
bool ChangePassword(string userName, string oldPassword, string newPassword);
}
}