C# Class Masonry.Services.SecurityService

Inheritance: ISecurityService
Mostra file Open project: DenisVuyka/Masonry

Public Methods

Method Description
ChangePassword ( string userName, string currentPassword, string newPassword ) : bool
ConfirmAccount ( string accountConfirmationToken ) : bool
CreateUserAndAccount ( string account, string password, string email, string name, bool requireConfirmation = false ) : void
Login ( string userName, string password, bool persistCookie = false ) : bool
Logout ( ) : void

Private Methods

Method Description
SendRegistrationConfirmationEmail ( string email, string confirmationToken ) : void

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

CreateUserAndAccount() public method

public CreateUserAndAccount ( string account, string password, string email, string name, bool requireConfirmation = false ) : void
account string
password string
email string
name string
requireConfirmation bool
return void

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