C# 클래스 Roadkill.Core.Database.User

A user object for use with the data store, whatever that might be (e.g. an RDMS or MongoDB)
상속: IDataStoreEntity
파일 보기 프로젝트 열기: LocalGovDigital/pipeline 1 사용 예제들

공개 메소드들

메소드 설명
HashPassword ( string password, string salt ) : string

Hashes a combination of the password and salt using SHA1 via FormsAuthentication, or SHA256 is FormsAuthentication is not enabled.

SetPassword ( string password ) : void

Encrypts and sets the password for the user.

메소드 상세

HashPassword() 공개 정적인 메소드

Hashes a combination of the password and salt using SHA1 via FormsAuthentication, or SHA256 is FormsAuthentication is not enabled.
public static HashPassword ( string password, string salt ) : string
password string
salt string
리턴 string

SetPassword() 공개 메소드

Encrypts and sets the password for the user.
public SetPassword ( string password ) : void
password string The password in plain text format.
리턴 void