C# 클래스 Project.Core.Services.AccountService

파일 보기 프로젝트 열기: tylermercier/mvc_template 1 사용 예제들

공개 메소드들

메소드 설명
AccountService ( IRepository repository ) : System
Authenticate ( string username, string password ) : bool
Create ( string email, string password ) : Account
GenerateSalt ( int bufferSize = 40 ) : string
GenerateSaltedPassword ( string password, string salt ) : string

메소드 상세

AccountService() 공개 메소드

public AccountService ( IRepository repository ) : System
repository IRepository
리턴 System

Authenticate() 공개 메소드

public Authenticate ( string username, string password ) : bool
username string
password string
리턴 bool

Create() 공개 메소드

public Create ( string email, string password ) : Account
email string
password string
리턴 Project.Core.Models.Account

GenerateSalt() 공개 메소드

public GenerateSalt ( int bufferSize = 40 ) : string
bufferSize int
리턴 string

GenerateSaltedPassword() 공개 메소드

public GenerateSaltedPassword ( string password, string salt ) : string
password string
salt string
리턴 string