C# Class CapRaffle.Domain.Implementation.AccountRepository

Inheritance: IAccountRepository
Mostra file Open project: capgemini-stavanger/CapRaffle

Public Methods

Method Description
Authenticate ( string email, string password ) : bool
ChangeName ( string email, string newName ) : bool
ChangePassword ( string email, string newPassword ) : bool
Create ( string email, string password, string name ) : bool
ForgotPassword ( string email ) : void
GetUserByEmail ( string email ) : User
SignOut ( ) : void

Private Methods

Method Description
CreatePasswordHash ( string password, string salt ) : string
CreateSalt ( string email ) : string
GeneratePassword ( ) : string

Method Details

Authenticate() public method

public Authenticate ( string email, string password ) : bool
email string
password string
return bool

ChangeName() public method

public ChangeName ( string email, string newName ) : bool
email string
newName string
return bool

ChangePassword() public method

public ChangePassword ( string email, string newPassword ) : bool
email string
newPassword string
return bool

Create() public method

public Create ( string email, string password, string name ) : bool
email string
password string
name string
return bool

ForgotPassword() public method

public ForgotPassword ( string email ) : void
email string
return void

GetUserByEmail() public method

public GetUserByEmail ( string email ) : User
email string
return CapRaffle.Domain.Model.User

SignOut() public method

public SignOut ( ) : void
return void