C# Class App.Web.Code.Membership.CustomMembershipProvider

Inheritance: WebMatrix.WebData.ExtendedMembershipProvider
Afficher le fichier Open project: mazhekin/MVC4CustomMembershipSolution

Méthodes publiques

Méthode Description
ChangePassword ( string username, string oldPassword, string newPassword ) : bool
ChangePasswordQuestionAndAnswer ( string username, string password, string newPasswordQuestion, string newPasswordAnswer ) : bool
ConfirmAccount ( string accountConfirmationToken ) : bool
ConfirmAccount ( string userName, string accountConfirmationToken ) : bool
CreateAccount ( string userName, string password, bool requireConfirmationToken ) : string
CreateOrUpdateOAuthAccount ( string provider, string providerUserId, string userName ) : void
CreateUser ( string username, string password, string email, string passwordQuestion, string passwordAnswer, bool isApproved, object providerUserKey, System &status ) : System.Web.Security.MembershipUser
CreateUserAndAccount ( string userName, string password, bool requireConfirmation, object>.IDictionary values ) : string
CustomMembershipProvider ( ) : System
DeleteAccount ( string userName ) : bool
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
GeneratePasswordResetToken ( string userName, int tokenExpirationInMinutesFromNow ) : string
GetAccountsForUser ( string userName ) : ICollection
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 ( object providerUserKey, bool userIsOnline ) : System.Web.Security.MembershipUser
GetUser ( string username, bool userIsOnline ) : System.Web.Security.MembershipUser
GetUserIdFromOAuth ( string provider, string providerUserId ) : int
GetUserIdFromPasswordResetToken ( string token ) : int
GetUserNameByEmail ( string email ) : string
GetUserNameFromId ( int userId ) : string
IsConfirmed ( string userName ) : bool
ResetPassword ( string username, string answer ) : string
ResetPasswordWithToken ( string token, string newPassword ) : bool
UnlockUser ( string userName ) : bool
UpdateUser ( System user ) : void
ValidateUser ( string username, string password ) : bool

Method Details

ChangePassword() public méthode

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

ChangePasswordQuestionAndAnswer() public méthode

public ChangePasswordQuestionAndAnswer ( string username, string password, string newPasswordQuestion, string newPasswordAnswer ) : bool
username string
password string
newPasswordQuestion string
newPasswordAnswer string
Résultat bool

ConfirmAccount() public méthode

public ConfirmAccount ( string accountConfirmationToken ) : bool
accountConfirmationToken string
Résultat bool

ConfirmAccount() public méthode

public ConfirmAccount ( string userName, string accountConfirmationToken ) : bool
userName string
accountConfirmationToken string
Résultat bool

CreateAccount() public méthode

public CreateAccount ( string userName, string password, bool requireConfirmationToken ) : string
userName string
password string
requireConfirmationToken bool
Résultat string

CreateOrUpdateOAuthAccount() public méthode

public CreateOrUpdateOAuthAccount ( string provider, string providerUserId, string userName ) : void
provider string
providerUserId string
userName string
Résultat void

CreateUser() public méthode

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

CreateUserAndAccount() public méthode

public CreateUserAndAccount ( string userName, string password, bool requireConfirmation, object>.IDictionary values ) : string
userName string
password string
requireConfirmation bool
values object>.IDictionary
Résultat string

CustomMembershipProvider() public méthode

public CustomMembershipProvider ( ) : System
Résultat System

DeleteAccount() public méthode

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

DeleteUser() public méthode

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

FindUsersByEmail() public méthode

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

FindUsersByName() public méthode

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

GeneratePasswordResetToken() public méthode

public GeneratePasswordResetToken ( string userName, int tokenExpirationInMinutesFromNow ) : string
userName string
tokenExpirationInMinutesFromNow int
Résultat string

GetAccountsForUser() public méthode

public GetAccountsForUser ( string userName ) : ICollection
userName string
Résultat ICollection

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

GetCreateDate() public méthode

public GetCreateDate ( string userName ) : System.DateTime
userName string
Résultat System.DateTime

GetLastPasswordFailureDate() public méthode

public GetLastPasswordFailureDate ( string userName ) : System.DateTime
userName string
Résultat System.DateTime

GetNumberOfUsersOnline() public méthode

public GetNumberOfUsersOnline ( ) : int
Résultat int

GetPassword() public méthode

public GetPassword ( string username, string answer ) : string
username string
answer string
Résultat string

GetPasswordChangedDate() public méthode

public GetPasswordChangedDate ( string userName ) : System.DateTime
userName string
Résultat System.DateTime

GetPasswordFailuresSinceLastSuccess() public méthode

public GetPasswordFailuresSinceLastSuccess ( string userName ) : int
userName string
Résultat int

GetUser() public méthode

public GetUser ( object providerUserKey, bool userIsOnline ) : System.Web.Security.MembershipUser
providerUserKey object
userIsOnline bool
Résultat System.Web.Security.MembershipUser

GetUser() public méthode

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

GetUserIdFromOAuth() public méthode

public GetUserIdFromOAuth ( string provider, string providerUserId ) : int
provider string
providerUserId string
Résultat int

GetUserIdFromPasswordResetToken() public méthode

public GetUserIdFromPasswordResetToken ( string token ) : int
token string
Résultat int

GetUserNameByEmail() public méthode

public GetUserNameByEmail ( string email ) : string
email string
Résultat string

GetUserNameFromId() public méthode

public GetUserNameFromId ( int userId ) : string
userId int
Résultat string

IsConfirmed() public méthode

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

ResetPassword() public méthode

public ResetPassword ( string username, string answer ) : string
username string
answer string
Résultat string

ResetPasswordWithToken() public méthode

public ResetPasswordWithToken ( string token, string newPassword ) : bool
token string
newPassword string
Résultat bool

UnlockUser() public méthode

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

UpdateUser() public méthode

public UpdateUser ( System user ) : void
user System
Résultat void

ValidateUser() public méthode

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