C# 클래스 JwtWebApi.Controllers.AccountController

상속: ApiController
파일 보기 프로젝트 열기: stewartm83/Jwt-WebApi

공개 메소드들

메소드 설명
CreateSalt ( ) : string

Creates a random salt to be used for encrypting a password

EncryptPassword ( string password, string salt ) : string

Encrypts a password using the given salt

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

비공개 메소드들

메소드 설명
CreateToken ( User user, object &dbUser ) : string

Create a Jwt with user information

CreateUser ( RegisterViewModel registerDetails ) : User

Create a new user and saves it to the database

Login ( LoginViewModel model ) : HttpResponseMessage
Register ( RegisterViewModel model ) : HttpResponseMessage

메소드 상세

CreateSalt() 공개 정적인 메소드

Creates a random salt to be used for encrypting a password
public static CreateSalt ( ) : string
리턴 string

Dispose() 보호된 메소드

protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

EncryptPassword() 공개 정적인 메소드

Encrypts a password using the given salt
public static EncryptPassword ( string password, string salt ) : string
password string
salt string
리턴 string