Метод | Описание | |
---|---|---|
ChangePassword ( string username, string oldPassword, string newPassword ) : bool |
Changes a users password after checking that they know their old password
|
|
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 |
Creates a user from the given parameters and settings in the web.config (under the membership section)
|
|
DeleteUser ( string username, bool deleteAllRelatedData ) : bool | ||
Equals ( object obj ) : 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 | ||
GeneratePassword ( ) : string | ||
GetAllUsers ( int pageIndex, int pageSize, int &totalRecords ) : System.Web.Security.MembershipUserCollection | ||
GetHashCode ( ) : int | ||
GetNumberOfUsersOnline ( ) : int | ||
GetPassword ( string username, string answer ) : string |
Pulls the password out of the database if EnablePasswordRetrieval is set to true (not yet implemented).
|
|
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, System config ) : void | ||
ResetPassword ( string username, string passwordAnswer ) : string |
Resets a user's password if they have the correct answer to the passwordQuestion
|
|
ToString ( ) : string | ||
UnlockUser ( string userName ) : bool | ||
UpdateUser ( System.Web.Security.MembershipUser user ) : void | ||
ValidateUser ( string username, string password ) : bool |
Validates a user by making sure their username and password are correct in the system. Regardless of the web.config settings, the password information (salt, format) are taken from the database and then compared
|
Метод | Описание | |
---|---|---|
DecryptPassword ( byte encodedPassword ) : byte[] | ||
EncryptPassword ( byte password ) : byte[] | ||
OnValidatingPassword ( System.Web.Security.ValidatePasswordEventArgs e ) : void |
Метод | Описание | |
---|---|---|
CheckPassword ( string username, string password, int &status ) : bool |
Checks the given password against the stored password for a user
|
|
EncodePassword ( string pass, int passwordFormat, string salt ) : string | ||
GenerateSalt ( ) : string | ||
GetPasswordWithFormat ( string username, int &passwordFormat, int &status, string &passwordSalt, bool &userIsApproved ) : string |
Pulls out the password information for user identified by 'username', along with the password format, salt, and user approval information
|
|
UnEncodePassword ( string pass, int passwordFormat ) : string |
public ChangePassword ( string username, string oldPassword, string newPassword ) : bool | ||
username | string | Username |
oldPassword | string | The old password in the system |
newPassword | string | The desired new password |
Результат | bool |
public ChangePasswordQuestionAndAnswer ( string username, string password, string newPasswordQuestion, string newPasswordAnswer ) : bool | ||
username | string | |
password | string | |
newPasswordQuestion | string | |
newPasswordAnswer | string | |
Результат | bool |
public CreateUser ( string username, string password, string email, string passwordQuestion, string passwordAnswer, bool isApproved, object providerUserKey, MembershipCreateStatus &status ) : System.Web.Security.MembershipUser | ||
username | string | Kerberos LoginID of the user who created the account (or string.empty) |
password | string | Password -- complexity determined by web.config settings |
string | Email entered by user | |
passwordQuestion | string | |
passwordAnswer | string | |
isApproved | bool | |
providerUserKey | object | Not used since username is always unique, we can look up with UserID when necessary |
status | MembershipCreateStatus | |
Результат | System.Web.Security.MembershipUser |
protected DecryptPassword ( byte encodedPassword ) : byte[] | ||
encodedPassword | byte | |
Результат | byte[] |
public DeleteUser ( string username, bool deleteAllRelatedData ) : bool | ||
username | string | |
deleteAllRelatedData | bool | |
Результат | bool |
protected EncryptPassword ( byte password ) : byte[] | ||
password | byte | |
Результат | byte[] |
public FindUsersByEmail ( string emailToMatch, int pageIndex, int pageSize, int &totalRecords ) : System.Web.Security.MembershipUserCollection | ||
emailToMatch | string | |
pageIndex | int | |
pageSize | int | |
totalRecords | int | |
Результат | System.Web.Security.MembershipUserCollection |
public FindUsersByName ( string usernameToMatch, int pageIndex, int pageSize, int &totalRecords ) : System.Web.Security.MembershipUserCollection | ||
usernameToMatch | string | |
pageIndex | int | |
pageSize | int | |
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 GetPassword ( string username, string answer ) : string | ||
username | string | Username |
answer | string | Answer to the users question |
Результат | string |
public GetUser ( object providerUserKey, bool userIsOnline ) : System.Web.Security.MembershipUser | ||
providerUserKey | object | |
userIsOnline | bool | |
Результат | System.Web.Security.MembershipUser |
public GetUser ( string username, bool userIsOnline ) : System.Web.Security.MembershipUser | ||
username | string | Email Address of the account |
userIsOnline | bool | |
Результат | System.Web.Security.MembershipUser |
public GetUserNameByEmail ( string email ) : string | ||
string | ||
Результат | string |
public Initialize ( string name, System config ) : void | ||
name | string | |
config | System | |
Результат | void |
protected OnValidatingPassword ( System.Web.Security.ValidatePasswordEventArgs e ) : void | ||
e | System.Web.Security.ValidatePasswordEventArgs | |
Результат | void |
public ResetPassword ( string username, string passwordAnswer ) : string | ||
username | string | Username |
passwordAnswer | string | |
Результат | string |
public UnlockUser ( string userName ) : bool | ||
userName | string | |
Результат | bool |
public UpdateUser ( System.Web.Security.MembershipUser user ) : void | ||
user | System.Web.Security.MembershipUser | |
Результат | void |
public ValidateUser ( string username, string password ) : bool | ||
username | string | Unique username |
password | string | Password to be compared against database. |
Результат | bool |