C# Class JordanRift.Grassroots.Framework.Services.GrassrootsMembershipService

Afficher le fichier Open project: JordanRift/Grassroots Class Usage Examples

Méthodes publiques

Méthode Description
ChangePassword ( string username, string oldPassword, string newPassword ) : bool
CreateUser ( string username, string password, string email, string passwordQuestion, string passwordAnswer, bool isApproved, object providerUserKey, MembershipCreateStatus &status, bool requiresUniqueEmail ) : System.Web.Security.MembershipUser
DeleteUser ( string username ) : bool
FindUsersByName ( string usernameToMatch, int &totalRecords ) : System.Web.Security.MembershipUserCollection
GenerateRandomPin ( ) : string

Generates a secure random number for a user to verify password reset

GetAllUsers ( int pageIndex, int pageSize, int &totalRecords ) : System.Web.Security.MembershipUserCollection
GetNumberOfUsersOnline ( ) : int
GetUser ( string username ) : System.Web.Security.MembershipUser
GetUserAuthorizationHash ( ) : string
GrassrootsMembershipService ( ) : System
HashPassword ( string passwordText, byte saltBytes ) : string
IsActivationHashValid ( UserProfile userProfile ) : bool
ResetPassword ( string username, bool enablePasswordReset ) : string
UnlockUser ( string userName ) : bool
UpdatePassword ( UserProfile userProfile, string activationPin, string password ) : bool
UpdateUser ( System.Web.Security.MembershipUser user ) : void
ValidateUser ( string username, string password, int maxInvalidPasswordAttempts ) : bool
VerifyPasswordHash ( string plainText, string hashedPassword ) : bool

Private Methods

Méthode Description
MapQuery ( IEnumerable query ) : System.Web.Security.MembershipUserCollection

Method Details

ChangePassword() public méthode

public ChangePassword ( string username, string oldPassword, string newPassword ) : bool
username string
oldPassword string
newPassword string
Résultat bool

CreateUser() public méthode

public CreateUser ( string username, string password, string email, string passwordQuestion, string passwordAnswer, bool isApproved, object providerUserKey, MembershipCreateStatus &status, bool requiresUniqueEmail ) : System.Web.Security.MembershipUser
username string
password string
email string
passwordQuestion string
passwordAnswer string
isApproved bool
providerUserKey object
status MembershipCreateStatus
requiresUniqueEmail bool
Résultat System.Web.Security.MembershipUser

DeleteUser() public méthode

public DeleteUser ( string username ) : bool
username string
Résultat bool

FindUsersByName() public méthode

public FindUsersByName ( string usernameToMatch, int &totalRecords ) : System.Web.Security.MembershipUserCollection
usernameToMatch string
totalRecords int
Résultat System.Web.Security.MembershipUserCollection

GenerateRandomPin() public méthode

Generates a secure random number for a user to verify password reset
public GenerateRandomPin ( ) : string
Résultat string

GetAllUsers() public méthode

public GetAllUsers ( int pageIndex, int pageSize, int &totalRecords ) : System.Web.Security.MembershipUserCollection
pageIndex int
pageSize int
totalRecords int
Résultat System.Web.Security.MembershipUserCollection

GetNumberOfUsersOnline() public méthode

public GetNumberOfUsersOnline ( ) : int
Résultat int

GetUser() public méthode

public GetUser ( string username ) : System.Web.Security.MembershipUser
username string
Résultat System.Web.Security.MembershipUser

GetUserAuthorizationHash() public méthode

public GetUserAuthorizationHash ( ) : string
Résultat string

GrassrootsMembershipService() public méthode

public GrassrootsMembershipService ( ) : System
Résultat System

HashPassword() public static méthode

public static HashPassword ( string passwordText, byte saltBytes ) : string
passwordText string
saltBytes byte
Résultat string

IsActivationHashValid() public méthode

public IsActivationHashValid ( UserProfile userProfile ) : bool
userProfile UserProfile
Résultat bool

ResetPassword() public méthode

public ResetPassword ( string username, bool enablePasswordReset ) : string
username string
enablePasswordReset bool
Résultat string

UnlockUser() public méthode

public UnlockUser ( string userName ) : bool
userName string
Résultat bool

UpdatePassword() public méthode

public UpdatePassword ( UserProfile userProfile, string activationPin, string password ) : bool
userProfile UserProfile
activationPin string
password string
Résultat bool

UpdateUser() public méthode

public UpdateUser ( System.Web.Security.MembershipUser user ) : void
user System.Web.Security.MembershipUser
Résultat void

ValidateUser() public méthode

public ValidateUser ( string username, string password, int maxInvalidPasswordAttempts ) : bool
username string
password string
maxInvalidPasswordAttempts int
Résultat bool

VerifyPasswordHash() public static méthode

public static VerifyPasswordHash ( string plainText, string hashedPassword ) : bool
plainText string
hashedPassword string
Résultat bool