C# Class BgEngine.Infraestructure.Security.CodeFirstMembershipProvider

Inheritance: CodeFirstExtendedProvider
Datei anzeigen Open project: yagopv/BgEngine

Public Methods

Method Description
ChangePassword ( string userName, string oldPassword, string newPassword ) : bool
ChangePasswordQuestionAndAnswer ( string username, string password, string newPasswordQuestion, string newPasswordAnswer ) : bool
ConfirmAccount ( string accountConfirmationToken ) : bool
CreateAccount ( string userName, string password, string email, bool requireConfirmationToken ) : string
CreateAccount ( string userName, string password, string email, string firstname, string lastname, string timezone, string culture, bool requireConfirmationToken ) : string
CreateUser ( string username, string password, string email, string passwordQuestion, string passwordAnswer, bool isApproved, object providerUserKey, MembershipCreateStatus &status ) : System.Web.Security.MembershipUser
DeleteAccount ( string userName ) : bool
DeleteUser ( string username, bool deleteAllRelatedData ) : bool
ExtendedValidateUser ( string userNameOrEmail, string password ) : string
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
GeneratePasswordResetToken ( string userName, int tokenExpirationInMinutesFromNow ) : string
GetAllUsers ( int pageIndex, int pageSize, int &totalRecords ) : System.Web.Security.MembershipUserCollection
GetCreateDate ( string userName ) : System.DateTime
GetLastPasswordFailureDate ( string userName ) : System.DateTime
GetNumberOfUsersOnline ( ) : int
GetPassword ( string username, string answer ) : string
GetPasswordChangedDate ( string userName ) : System.DateTime
GetPasswordFailuresSinceLastSuccess ( string userName ) : int
GetUser ( string userName, bool userIsOnline ) : System.Web.Security.MembershipUser
GetUser ( object providerUserKey, bool userIsOnline ) : System.Web.Security.MembershipUser
GetUserIdFromPasswordResetToken ( string token ) : System.Guid
GetUserNameByEmail ( string email ) : string
Initialize ( string name, System config ) : void
IsConfirmed ( string userName ) : bool
ResetPassword ( string username, string answer ) : string
ResetPasswordWithToken ( string token, string newPassword ) : bool
UnlockUser ( string userName ) : bool
UpdateUser ( System.Web.Security.MembershipUser user ) : void
ValidateUser ( string username, string password ) : bool

Private Methods

Method Description
CreateArgumentNullOrEmptyException ( string paramName ) : ArgumentException

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

ConfirmAccount() public method

public ConfirmAccount ( string accountConfirmationToken ) : bool
accountConfirmationToken string
return bool

CreateAccount() public method

public CreateAccount ( string userName, string password, string email, bool requireConfirmationToken ) : string
userName string
password string
email string
requireConfirmationToken bool
return string

CreateAccount() public method

public CreateAccount ( string userName, string password, string email, string firstname, string lastname, string timezone, string culture, bool requireConfirmationToken ) : string
userName string
password string
email string
firstname string
lastname string
timezone string
culture string
requireConfirmationToken bool
return string

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

DeleteAccount() public method

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

DeleteUser() public method

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

ExtendedValidateUser() public method

public ExtendedValidateUser ( string userNameOrEmail, string password ) : string
userNameOrEmail string
password string
return string

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

GeneratePasswordResetToken() public method

public GeneratePasswordResetToken ( string userName, int tokenExpirationInMinutesFromNow ) : string
userName string
tokenExpirationInMinutesFromNow int
return string

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

GetCreateDate() public method

public GetCreateDate ( string userName ) : System.DateTime
userName string
return System.DateTime

GetLastPasswordFailureDate() public method

public GetLastPasswordFailureDate ( string userName ) : System.DateTime
userName string
return System.DateTime

GetNumberOfUsersOnline() public method

public GetNumberOfUsersOnline ( ) : int
return int

GetPassword() public method

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

GetPasswordChangedDate() public method

public GetPasswordChangedDate ( string userName ) : System.DateTime
userName string
return System.DateTime

GetPasswordFailuresSinceLastSuccess() public method

public GetPasswordFailuresSinceLastSuccess ( string userName ) : int
userName string
return int

GetUser() public method

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

GetUser() public method

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

GetUserIdFromPasswordResetToken() public method

public GetUserIdFromPasswordResetToken ( string token ) : System.Guid
token string
return System.Guid

GetUserNameByEmail() public method

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

Initialize() public method

public Initialize ( string name, System config ) : void
name string
config System
return void

IsConfirmed() public method

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

ResetPassword() public method

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

ResetPasswordWithToken() public method

public ResetPasswordWithToken ( string token, string newPassword ) : bool
token string
newPassword string
return bool

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