C# Class Web.Infrastructure.Membership.JsMembershipProvider

Inheritance: System.Web.Security.MembershipProvider
ファイルを表示 Open project: lgn/CurrentProject

Public Methods

Method Description
ChangePassword ( string username, string oldPwd, string newPwd ) : bool
ChangePasswordQuestionAndAnswer ( string username, string password, string newPwdQuestion, string newPwdAnswer ) : bool
CreateUser ( string username, string password, string email, string passwordQuestion, string passwordAnswer, bool isApproved, object providerUserKey, MembershipCreateStatus &status ) : System.Web.Security.MembershipUser
DeleteUser ( string username, bool deleteAllRelatedData ) : bool
FindUsersByEmail ( string email, int pageIndex, int pageSize, int &totalRecords ) : System.Web.Security.MembershipUserCollection
FindUsersByName ( string usernameToMatch, int pageIndex, int pageSize, int &totalRecords ) : System.Web.Security.MembershipUserCollection
GetAllUsers ( int pageIndex, int pageSize, int &totalRecords ) : System.Web.Security.MembershipUserCollection
GetNumberOfUsersOnline ( ) : int
GetPassword ( string username, string answer ) : string
GetUser ( object providerUserKey, bool userIsOnline ) : System.Web.Security.MembershipUser
GetUser ( string username, bool userIsOnline ) : System.Web.Security.MembershipUser
GetUserNameByEmail ( string email ) : string
Initialize ( string name, NameValueCollection config ) : void
ResetPassword ( string username, string answer ) : string
UnlockUser ( string username ) : bool
UpdateUser ( MembershipUser membershipUser ) : void
ValidateUser ( string username, string password ) : bool

Private Methods

Method Description
CheckPassword ( string password, string dbpassword ) : bool
EncodePassword ( string password ) : string
GetConfigValue ( string configValue, string defaultValue ) : string
GetMembershipUser ( User user ) : System.Web.Security.MembershipUser
GetMembershipUserByKeyOrUser ( bool isKeySupplied, string username, object providerUserKey, bool userIsOnline ) : System.Web.Security.MembershipUser
GetUserByUsername ( string username ) : User
GetUsers ( ) : IList
GetUsersByEmail ( string email ) : IList
GetUsersByUsername ( string username ) : IList
HexToByte ( string hexString ) : byte[]
UnEncodePassword ( string encodedPassword ) : string
UpdateFailureCount ( string username, string failureType ) : void
WriteToEventLog ( Exception e, string action ) : void

Method Details

ChangePassword() public method

public ChangePassword ( string username, string oldPwd, string newPwd ) : bool
username string
oldPwd string
newPwd string
return bool

ChangePasswordQuestionAndAnswer() public method

public ChangePasswordQuestionAndAnswer ( string username, string password, string newPwdQuestion, string newPwdAnswer ) : bool
username string
password string
newPwdQuestion string
newPwdAnswer string
return bool

CreateUser() public method

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

DeleteUser() public method

public DeleteUser ( string username, bool deleteAllRelatedData ) : bool
username string
deleteAllRelatedData bool
return bool

FindUsersByEmail() public method

public FindUsersByEmail ( string email, int pageIndex, int pageSize, int &totalRecords ) : System.Web.Security.MembershipUserCollection
email string
pageIndex int
pageSize int
totalRecords int
return System.Web.Security.MembershipUserCollection

FindUsersByName() public method

public FindUsersByName ( string usernameToMatch, int pageIndex, int pageSize, int &totalRecords ) : System.Web.Security.MembershipUserCollection
usernameToMatch string
pageIndex int
pageSize int
totalRecords int
return System.Web.Security.MembershipUserCollection

GetAllUsers() public method

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

GetNumberOfUsersOnline() public method

public GetNumberOfUsersOnline ( ) : int
return int

GetPassword() public method

public GetPassword ( string username, string answer ) : string
username string
answer string
return string

GetUser() public method

public GetUser ( object providerUserKey, bool userIsOnline ) : System.Web.Security.MembershipUser
providerUserKey object
userIsOnline bool
return System.Web.Security.MembershipUser

GetUser() public method

public GetUser ( string username, bool userIsOnline ) : System.Web.Security.MembershipUser
username string
userIsOnline bool
return System.Web.Security.MembershipUser

GetUserNameByEmail() public method

public GetUserNameByEmail ( string email ) : string
email string
return string

Initialize() public method

public Initialize ( string name, NameValueCollection config ) : void
name string
config System.Collections.Specialized.NameValueCollection
return void

ResetPassword() public method

public ResetPassword ( string username, string answer ) : string
username string
answer string
return string

UnlockUser() public method

public UnlockUser ( string username ) : bool
username string
return bool

UpdateUser() public method

public UpdateUser ( MembershipUser membershipUser ) : void
membershipUser MembershipUser
return void

ValidateUser() public method

public ValidateUser ( string username, string password ) : bool
username string
password string
return bool