C# Class afeprojectnameMembership.CodeFirstSecurity

Mostra file Open project: RyannosaurusRex/Shoelace-MVC

Private Properties

Property Type Description
IsAccountLockedOutInternal bool
IsUserLoggedOn bool
VerifyProvider CodeFirstExtendedProvider

Public Methods

Method Description
ChangePassword ( string userName, string currentPassword, string newPassword ) : bool
ConfirmAccount ( string accountConfirmationToken ) : bool
CreateAccount ( string userName, string password, string email, bool requireConfirmationToken = false ) : string
GeneratePasswordResetToken ( string userName, int tokenExpirationInMinutesFromNow = 1440 ) : string
GetCreateDate ( string userName ) : System.DateTime
GetLastPasswordFailureDate ( string userName ) : System.DateTime
GetPasswordChangedDate ( string userName ) : System.DateTime
GetPasswordFailuresSinceLastSuccess ( string userName ) : int
GetUserEmail ( string userName ) : string
GetUserId ( string userName ) : System.Guid
GetUserIdFromPasswordResetToken ( string token ) : System.Guid
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
IsEmpty ( string value ) : bool
Login ( string userNameOrEmail, string password, bool persistCookie = false ) : bool
Logout ( ) : void
RequireAuthenticatedUser ( ) : void
RequireRoles ( ) : void
RequireUser ( System.Guid userId ) : void
RequireUser ( string userName ) : void
ResetPassword ( string passwordResetToken, string newPassword ) : bool
SetStatus ( this response, HttpStatusCode httpStatusCode ) : void
SetStatus ( this response, int httpStatusCode ) : void
UserExists ( string userName ) : bool

Private Methods

Method Description
IsAccountLockedOutInternal ( CodeFirstExtendedProvider provider, string userName, int allowedPasswordAttempts, System.TimeSpan interval ) : bool
IsUserLoggedOn ( System.Guid userId ) : bool
VerifyProvider ( ) : CodeFirstExtendedProvider

Method Details

ChangePassword() public static method

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

ConfirmAccount() public static method

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

CreateAccount() public static method

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

GeneratePasswordResetToken() public static method

public static GeneratePasswordResetToken ( string userName, int tokenExpirationInMinutesFromNow = 1440 ) : string
userName string
tokenExpirationInMinutesFromNow int
return string

GetCreateDate() public static method

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

GetLastPasswordFailureDate() public static method

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

GetPasswordChangedDate() public static method

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

GetPasswordFailuresSinceLastSuccess() public static method

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

GetUserEmail() public static method

public static GetUserEmail ( string userName ) : string
userName string
return string

GetUserId() public static method

public static GetUserId ( string userName ) : System.Guid
userName string
return System.Guid

GetUserIdFromPasswordResetToken() public static method

public static GetUserIdFromPasswordResetToken ( string token ) : System.Guid
token string
return System.Guid

IsAccountLockedOut() public static method

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

IsAccountLockedOut() public static method

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

IsConfirmed() public static method

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

IsCurrentUser() public static method

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

IsEmpty() public static method

public static IsEmpty ( string value ) : bool
value string
return bool

Login() public static method

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

Logout() public static method

public static Logout ( ) : void
return void

RequireAuthenticatedUser() public static method

public static RequireAuthenticatedUser ( ) : void
return void

RequireRoles() public static method

public static RequireRoles ( ) : void
return void

RequireUser() public static method

public static RequireUser ( System.Guid userId ) : void
userId System.Guid
return void

RequireUser() public static method

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

ResetPassword() public static method

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

SetStatus() public static method

public static SetStatus ( this response, HttpStatusCode httpStatusCode ) : void
response this
httpStatusCode HttpStatusCode
return void

SetStatus() public static method

public static SetStatus ( this response, int httpStatusCode ) : void
response this
httpStatusCode int
return void

UserExists() public static method

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