C# 클래스 JordanRift.Grassroots.Framework.Services.GrassrootsMembershipService

파일 보기 프로젝트 열기: JordanRift/Grassroots 1 사용 예제들

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
MapQuery ( IEnumerable query ) : System.Web.Security.MembershipUserCollection

메소드 상세

ChangePassword() 공개 메소드

public ChangePassword ( string username, string oldPassword, string newPassword ) : bool
username string
oldPassword string
newPassword string
리턴 bool

CreateUser() 공개 메소드

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
리턴 System.Web.Security.MembershipUser

DeleteUser() 공개 메소드

public DeleteUser ( string username ) : bool
username string
리턴 bool

FindUsersByName() 공개 메소드

public FindUsersByName ( string usernameToMatch, int &totalRecords ) : System.Web.Security.MembershipUserCollection
usernameToMatch string
totalRecords int
리턴 System.Web.Security.MembershipUserCollection

GenerateRandomPin() 공개 메소드

Generates a secure random number for a user to verify password reset
public GenerateRandomPin ( ) : string
리턴 string

GetAllUsers() 공개 메소드

public GetAllUsers ( int pageIndex, int pageSize, int &totalRecords ) : System.Web.Security.MembershipUserCollection
pageIndex int
pageSize int
totalRecords int
리턴 System.Web.Security.MembershipUserCollection

GetNumberOfUsersOnline() 공개 메소드

public GetNumberOfUsersOnline ( ) : int
리턴 int

GetUser() 공개 메소드

public GetUser ( string username ) : System.Web.Security.MembershipUser
username string
리턴 System.Web.Security.MembershipUser

GetUserAuthorizationHash() 공개 메소드

public GetUserAuthorizationHash ( ) : string
리턴 string

GrassrootsMembershipService() 공개 메소드

public GrassrootsMembershipService ( ) : System
리턴 System

HashPassword() 공개 정적인 메소드

public static HashPassword ( string passwordText, byte saltBytes ) : string
passwordText string
saltBytes byte
리턴 string

IsActivationHashValid() 공개 메소드

public IsActivationHashValid ( UserProfile userProfile ) : bool
userProfile UserProfile
리턴 bool

ResetPassword() 공개 메소드

public ResetPassword ( string username, bool enablePasswordReset ) : string
username string
enablePasswordReset bool
리턴 string

UnlockUser() 공개 메소드

public UnlockUser ( string userName ) : bool
userName string
리턴 bool

UpdatePassword() 공개 메소드

public UpdatePassword ( UserProfile userProfile, string activationPin, string password ) : bool
userProfile UserProfile
activationPin string
password string
리턴 bool

UpdateUser() 공개 메소드

public UpdateUser ( System.Web.Security.MembershipUser user ) : void
user System.Web.Security.MembershipUser
리턴 void

ValidateUser() 공개 메소드

public ValidateUser ( string username, string password, int maxInvalidPasswordAttempts ) : bool
username string
password string
maxInvalidPasswordAttempts int
리턴 bool

VerifyPasswordHash() 공개 정적인 메소드

public static VerifyPasswordHash ( string plainText, string hashedPassword ) : bool
plainText string
hashedPassword string
리턴 bool