C# Class TournamentReport.Services.WebSecurityService

Inheritance: IWebSecurityService
Mostrar archivo Open project: Haacked/TournamentMaker

Public Methods

Method Description
ChangePassword ( string userName, string currentPassword, string newPassword ) : bool
ConfirmAccount ( string accountConfirmationToken ) : bool
CreateAccount ( string userName, string password, bool requireConfirmationToken = false ) : string
CreateUserAndAccount ( string userName, string password, object propertyValues = null, bool requireConfirmationToken = false ) : string
GeneratePasswordResetToken ( string userName, int tokenExpirationInMinutesFromNow = 0x5a0 ) : string
GetCreateDate ( string userName ) : System.DateTime
GetLastPasswordFailureDate ( string userName ) : System.DateTime
GetPasswordChangedDate ( string userName ) : System.DateTime
GetPasswordFailuresSinceLastSuccess ( string userName ) : int
GetUserId ( string userName ) : int
GetUserIdFromPasswordResetToken ( string token ) : int
InitializeDatabaseConnection ( string connectionStringName, string userTableName, string userIdColumn, string userNameColumn, bool autoCreateTables ) : void
InitializeDatabaseConnection ( string connectionString, string providerName, string userTableName, string userIdColumn, string userNameColumn, bool autoCreateTables ) : void
IsAccountLockedOut ( string userName, int allowedPasswordAttempts, System.TimeSpan interval ) : bool
IsAccountLockedOut ( string userName, int allowedPasswordAttempts, int intervalInSeconds ) : bool
IsConfirmed ( string userName ) : bool
IsCurrentUser ( string userName ) : bool
Login ( string userName, string password, bool persistCookie = false ) : bool
Logout ( ) : void
RequireAuthenticatedUser ( ) : void
RequireRoles ( ) : void
RequireUser ( int userId ) : void
RequireUser ( string userName ) : void
ResetPassword ( string passwordResetToken, string newPassword ) : bool
UserExists ( string userName ) : bool

Method Details

ChangePassword() public method

public ChangePassword ( string userName, string currentPassword, string newPassword ) : bool
userName string
currentPassword string
newPassword string
return bool

ConfirmAccount() public method

public ConfirmAccount ( string accountConfirmationToken ) : bool
accountConfirmationToken string
return bool

CreateAccount() public method

public CreateAccount ( string userName, string password, bool requireConfirmationToken = false ) : string
userName string
password string
requireConfirmationToken bool
return string

CreateUserAndAccount() public method

public CreateUserAndAccount ( string userName, string password, object propertyValues = null, bool requireConfirmationToken = false ) : string
userName string
password string
propertyValues object
requireConfirmationToken bool
return string

GeneratePasswordResetToken() public method

public GeneratePasswordResetToken ( string userName, int tokenExpirationInMinutesFromNow = 0x5a0 ) : string
userName string
tokenExpirationInMinutesFromNow int
return string

GetCreateDate() public method

public GetCreateDate ( string userName ) : System.DateTime
userName string
return System.DateTime

GetLastPasswordFailureDate() public method

public GetLastPasswordFailureDate ( string userName ) : System.DateTime
userName string
return System.DateTime

GetPasswordChangedDate() public method

public GetPasswordChangedDate ( string userName ) : System.DateTime
userName string
return System.DateTime

GetPasswordFailuresSinceLastSuccess() public method

public GetPasswordFailuresSinceLastSuccess ( string userName ) : int
userName string
return int

GetUserId() public method

public GetUserId ( string userName ) : int
userName string
return int

GetUserIdFromPasswordResetToken() public method

public GetUserIdFromPasswordResetToken ( string token ) : int
token string
return int

InitializeDatabaseConnection() public method

public InitializeDatabaseConnection ( string connectionStringName, string userTableName, string userIdColumn, string userNameColumn, bool autoCreateTables ) : void
connectionStringName string
userTableName string
userIdColumn string
userNameColumn string
autoCreateTables bool
return void

InitializeDatabaseConnection() public method

public InitializeDatabaseConnection ( string connectionString, string providerName, string userTableName, string userIdColumn, string userNameColumn, bool autoCreateTables ) : void
connectionString string
providerName string
userTableName string
userIdColumn string
userNameColumn string
autoCreateTables bool
return void

IsAccountLockedOut() public method

public IsAccountLockedOut ( string userName, int allowedPasswordAttempts, System.TimeSpan interval ) : bool
userName string
allowedPasswordAttempts int
interval System.TimeSpan
return bool

IsAccountLockedOut() public method

public IsAccountLockedOut ( string userName, int allowedPasswordAttempts, int intervalInSeconds ) : bool
userName string
allowedPasswordAttempts int
intervalInSeconds int
return bool

IsConfirmed() public method

public IsConfirmed ( string userName ) : bool
userName string
return bool

IsCurrentUser() public method

public IsCurrentUser ( string userName ) : bool
userName string
return bool

Login() public method

public Login ( string userName, string password, bool persistCookie = false ) : bool
userName string
password string
persistCookie bool
return bool

Logout() public method

public Logout ( ) : void
return void

RequireAuthenticatedUser() public method

public RequireAuthenticatedUser ( ) : void
return void

RequireRoles() public method

public RequireRoles ( ) : void
return void

RequireUser() public method

public RequireUser ( int userId ) : void
userId int
return void

RequireUser() public method

public RequireUser ( string userName ) : void
userName string
return void

ResetPassword() public method

public ResetPassword ( string passwordResetToken, string newPassword ) : bool
passwordResetToken string
newPassword string
return bool

UserExists() public method

public UserExists ( string userName ) : bool
userName string
return bool