Метод | Описание | |
---|---|---|
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 |
public ChangePassword ( string username, string oldPassword, string newPassword ) : bool | ||
username | string | |
oldPassword | string | |
newPassword | string | |
Результат | bool |
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 | |
string | ||
passwordQuestion | string | |
passwordAnswer | string | |
isApproved | bool | |
providerUserKey | object | |
status | MembershipCreateStatus | |
requiresUniqueEmail | bool | |
Результат | System.Web.Security.MembershipUser |
public DeleteUser ( string username ) : bool | ||
username | string | |
Результат | bool |
public FindUsersByName ( string usernameToMatch, int &totalRecords ) : System.Web.Security.MembershipUserCollection | ||
usernameToMatch | string | |
totalRecords | int | |
Результат | System.Web.Security.MembershipUserCollection |
public GetAllUsers ( int pageIndex, int pageSize, int &totalRecords ) : System.Web.Security.MembershipUserCollection | ||
pageIndex | int | |
pageSize | int | |
totalRecords | int | |
Результат | System.Web.Security.MembershipUserCollection |
public GetUser ( string username ) : System.Web.Security.MembershipUser | ||
username | string | |
Результат | System.Web.Security.MembershipUser |
public GetUserAuthorizationHash ( ) : string | ||
Результат | string |
public GrassrootsMembershipService ( ) : System | ||
Результат | System |
public static HashPassword ( string passwordText, byte saltBytes ) : string | ||
passwordText | string | |
saltBytes | byte | |
Результат | string |
public IsActivationHashValid ( UserProfile userProfile ) : bool | ||
userProfile | UserProfile | |
Результат | bool |
public ResetPassword ( string username, bool enablePasswordReset ) : string | ||
username | string | |
enablePasswordReset | bool | |
Результат | string |
public UnlockUser ( string userName ) : bool | ||
userName | string | |
Результат | bool |
public UpdatePassword ( UserProfile userProfile, string activationPin, string password ) : bool | ||
userProfile | UserProfile | |
activationPin | string | |
password | string | |
Результат | bool |
public UpdateUser ( System.Web.Security.MembershipUser user ) : void | ||
user | System.Web.Security.MembershipUser | |
Результат | void |
public ValidateUser ( string username, string password, int maxInvalidPasswordAttempts ) : bool | ||
username | string | |
password | string | |
maxInvalidPasswordAttempts | int | |
Результат | bool |
public static VerifyPasswordHash ( string plainText, string hashedPassword ) : bool | ||
plainText | string | |
hashedPassword | string | |
Результат | bool |