Click or drag to resize

MySqlWebSecurity Class

Provides security features for web projects implementing a MySql database.
Inheritance Hierarchy
SystemObject
  MySql.Web.SecurityMySqlWebSecurity

Namespace:  MySql.Web.Security
Assembly:  MySql.Web (in MySql.Web.dll) Version: 8.0.22
Syntax
public static class MySqlWebSecurity

The MySqlWebSecurity type exposes the following members.

Properties
  NameDescription
Public propertyStatic memberCurrentUserId
Gets the current user id.
Public propertyStatic memberCurrentUserName
Gets the current user name.
Public propertyStatic memberHasUserId
Gets a flag indicating if there is an associated user id.
Public propertyStatic memberInitialized
Gets the initialized status.
Public propertyStatic memberIsAuthenticated
Gets a flag indicating if the user is authenticated.
Top
Methods
  NameDescription
Public methodStatic memberChangePassword
Changes the password for the user provided.
Public methodStatic memberConfirmAccount(String)
Confirms user by confirmation token.
Public methodStatic memberConfirmAccount(String, String)
Confirms user by confirmation token and user name.
Public methodStatic memberCreateAccount
Creates a user account.
Public methodStatic memberCreateUserAndAccount
Creates user and account.
Public methodStatic memberGeneratePasswordResetToken
Generates password reset token for a confirmed user.
Public methodStatic memberGetCreateDate
Gets the date when the specified user was created.
Public methodStatic memberGetLastPasswordFailureDate
Gets the last date when password fails.
Public methodStatic memberGetPasswordChangedDate
Gets the date when password was changed.
Public methodStatic memberGetPasswordFailuresSinceLastSuccess
Gets the password failures since last success.
Public methodStatic memberGetUserId
Gets the user id.
Public methodStatic memberGetUserIdFromPasswordResetToken
Gets the user id from the password reset token.
Public methodStatic memberInitializeDatabaseConnection(String, String, String, String, Boolean, Boolean)
Initializes the simple membership provider with the values given.
Public methodStatic memberInitializeDatabaseConnection(String, String, String, String, String, Boolean, Boolean)
Initializes the simple membership provider with the values given.
Public methodStatic memberIsAccountLockedOut(String, Int32, Int32)
Determines if the account is locked out.
Public methodStatic memberIsAccountLockedOut(String, Int32, TimeSpan)
Determines if the account is locked out.
Public methodStatic memberIsConfirmed
Determines if the user has been confirmed.
Public methodStatic memberIsCurrentUser
Determines if the CurrentUserName is the same as the provided user name.
Public methodStatic memberIsUseLoggedOn
Determines if the CurrentUserId matches the provided user id.
Public methodStatic memberLogin
Performs a login for the specified user.
Public methodStatic memberLogout
Performs a logout for the current item.
Public methodStatic memberRequireAuthenticatedUser
Evalutes if the user is authenticated.
Public methodStatic memberRequireRoles
Evaluates if the user belongs to the specified roles.
Public methodStatic memberRequiresUser(Int32)
Evaluates if the user is logged on.
Public methodStatic memberRequiresUser(String)
Evaluates if the provided user name matches the CurrentUserName.
Public methodStatic memberResetPassword
Resets the password identified by the provided password reset token.
Public methodStatic memberUserExists
Determines if the user exists.
Top
Fields
  NameDescription
Public fieldStatic memberEnableSimpleMembershipKey
Name of the key required to enable simple membership.
Top
See Also