C# Class AIMS_BD_IATI.WebAPI.Models.Authentication.CustomMembershipProvider

Inheritance: System.Web.Security.MembershipProvider
Show file Open project: BD-IATI/edi Class Usage Examples

Public Methods

Method Description
ChangePassword ( string username, string oldPassword, string newPassword ) : bool
ChangePasswordQuestionAndAnswer ( string username, string password, string newPasswordQuestion, string newPasswordAnswer ) : bool
CreateUser ( string username, string password, string email, string passwordQuestion, string passwordAnswer, bool isApproved, object providerUserKey, MembershipCreateStatus &status ) : System.Web.Security.MembershipUser
CustomMembershipProvider ( ) : System
DeleteUser ( string username, bool deleteAllRelatedData ) : bool
FindUsersByEmail ( string emailToMatch, 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
ResetPassword ( string userId, string newPassword ) : string
UnlockUser ( string userName ) : bool
UpdateUser ( System.Web.Security.MembershipUser user ) : void
ValidateUser ( string username, string password ) : bool
ValidateUser ( string username, string password, User &user ) : bool
getMd5Hash ( string input ) : string

Method Details

ChangePassword() public method

public ChangePassword ( string username, string oldPassword, string newPassword ) : bool
username string
oldPassword string
newPassword string
return bool

ChangePasswordQuestionAndAnswer() public method

public ChangePasswordQuestionAndAnswer ( string username, string password, string newPasswordQuestion, string newPasswordAnswer ) : bool
username string
password string
newPasswordQuestion string
newPasswordAnswer 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

CustomMembershipProvider() public method

public CustomMembershipProvider ( ) : System
return System

DeleteUser() public method

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

FindUsersByEmail() public method

public FindUsersByEmail ( string emailToMatch, int pageIndex, int pageSize, int &totalRecords ) : System.Web.Security.MembershipUserCollection
emailToMatch 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

ResetPassword() public method

public ResetPassword ( string userId, string newPassword ) : string
userId string
newPassword string
return string

UnlockUser() public method

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

UpdateUser() public method

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

ValidateUser() public method

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

ValidateUser() public method

public ValidateUser ( string username, string password, User &user ) : bool
username string
password string
user User
return bool

getMd5Hash() public static method

public static getMd5Hash ( string input ) : string
input string
return string