Method | Description | |
---|---|---|
ChangePassword ( string username, string oldPassword, string newPassword ) : bool |
Changes a users password. We don't use retries in this highly security-related function. All errors are exposed to the user of this function.
|
|
ChangePasswordQuestionAndAnswer ( string username, string password, string newPasswordQuestion, string newPasswordAnswer ) : bool |
Change the password answer for a user.
|
|
CreateUser ( string username, string password, string email, string passwordQuestion, string passwordAnswer, bool isApproved, object providerUserKey, MembershipCreateStatus &status ) : System.Web.Security.MembershipUser |
Creates a new user and stores it in the membership table. We do not use retry policies in this highly security-related function. All error conditions are directly exposed to the user.
|
|
DeleteUser ( string username, bool deleteAllRelatedData ) : bool |
Deletes the user from the membership table. This implementation ignores the deleteAllRelatedData argument
|
|
FindUsersByName ( string usernameToMatch, int pageIndex, int pageSize, int &totalRecords ) : System.Web.Security.MembershipUserCollection |
Find users by their names. The usernameToMatch must be the complete username like frank or can contain a '%' character at the end. A '%' character at the end implies that arbitrary characters can follow. Supporting additional searches right now would be very expensive because the filtering would have to be done on the client side; i.e., all users would have to be retrieved in order to do the filtering. IMPORTANT: because of this decision, user names must not contain a % character when using this function.
|
|
GeneratePassword ( ) : string | ||
GetAllUsers ( int pageIndex, int pageSize, int &totalRecords ) : System.Web.Security.MembershipUserCollection |
Retrieves a collection of all the users.
|
|
GetNumberOfUsersOnline ( ) : int |
Get the number of users that are currently online
|
|
GetPassword ( string username, string answer ) : string |
Gets the password of a user given the provided password answer
|
|
GetUser ( object providerUserKey, bool userIsOnline ) : System.Web.Security.MembershipUser |
Get a user based on the username parameter. If the userIsOnline parameter is set the lastActivity flag of the user is changed in the data store
|
|
GetUser ( string username, bool userIsOnline ) : System.Web.Security.MembershipUser |
Retrieves a user based on his/her username. The userIsOnline parameter determines whether to update the lastActivityDate of the user in the data store
|
|
GetUserNameByEmail ( string email ) : string |
Retrieves a username based on a matching email.
|
|
Initialize ( string name, |
Initializes the membership provider. This is the only function that cannot be accessed in parallel by multiple applications. The function reads the properties of the provider specified in the Web.config file and stores them in member variables.
|
|
ResetPassword ( string username, string answer ) : string |
Reset the password of a user. No retry policies are used in this function.
|
|
UnlockUser ( string userName ) : bool |
Unlock a user
|
|
ValidateUser ( string username, string password ) : bool |
Returns true if the username and password match an exsisting user. This implementation does not update a user's login time and does not raise corresponding Web events
|
Method | Description | |
---|---|---|
CheckPassword ( DataServiceContext svc, string username, string password, bool updateLastLoginActivityDate, bool failIfNotApproved, |
||
CheckPassword ( string username, string password, bool updateLastLoginActivityDate, bool failIfNotApproved ) : bool | ||
CheckPassword ( string username, string password, bool updateLastLoginActivityDate, bool failIfNotApproved, |
||
CreateDataServiceContext ( ) : Microsoft.WindowsAzure.StorageClient.TableServiceContext | ||
EncodePassword ( string pass, int passwordFormat, string salt ) : string | ||
EvaluatePasswordRequirements ( string password ) : bool | ||
FindUsersByEmail ( string emailToMatch, int pageIndex, int pageSize, int &totalRecords ) : System.Web.Security.MembershipUserCollection | ||
GenerateSalt ( ) : string | ||
GetUserFromTable ( DataServiceContext svc, string username ) : |
||
IsUniqueEmail ( string email ) : bool | ||
IsUniqueEmail ( string email, |
||
IsUniqueUserName ( string userName ) : bool | ||
PasswordAttemptWindowAsTimeSpan ( ) : TimeSpan | ||
ProcessGetUserQuery ( TableServiceContext svc, IQueryable |
||
UnEncodePassword ( string pass, int passwordFormat ) : string | ||
UpdateUser ( MembershipUser updatedUser ) : void |
public ChangePassword ( string username, string oldPassword, string newPassword ) : bool | ||
username | string | |
oldPassword | string | |
newPassword | string | |
return | bool |
public ChangePasswordQuestionAndAnswer ( string username, string password, string newPasswordQuestion, string newPasswordAnswer ) : bool | ||
username | string | |
password | string | |
newPasswordQuestion | string | |
newPasswordAnswer | string | |
return | 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 | |
password | string | |
string | ||
passwordQuestion | string | |
passwordAnswer | string | |
isApproved | bool | |
providerUserKey | object | |
status | MembershipCreateStatus | |
return | System.Web.Security.MembershipUser |
public DeleteUser ( string username, bool deleteAllRelatedData ) : bool | ||
username | string | |
deleteAllRelatedData | bool | |
return | bool |
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 |
public GetAllUsers ( int pageIndex, int pageSize, int &totalRecords ) : System.Web.Security.MembershipUserCollection | ||
pageIndex | int | |
pageSize | int | |
totalRecords | int | |
return | System.Web.Security.MembershipUserCollection |
public GetPassword ( string username, string answer ) : string | ||
username | string | |
answer | string | |
return | string |
public GetUser ( object providerUserKey, bool userIsOnline ) : System.Web.Security.MembershipUser | ||
providerUserKey | object | |
userIsOnline | bool | |
return | System.Web.Security.MembershipUser |
public GetUser ( string username, bool userIsOnline ) : System.Web.Security.MembershipUser | ||
username | string | |
userIsOnline | bool | |
return | System.Web.Security.MembershipUser |
public GetUserNameByEmail ( string email ) : string | ||
string | ||
return | string |
public Initialize ( string name, |
||
name | string | |
config | ||
return | void |
public ResetPassword ( string username, string answer ) : string | ||
username | string | |
answer | string | |
return | string |
public ValidateUser ( string username, string password ) : bool | ||
username | string | |
password | string | |
return | bool |