C# Class Roadkill.Core.Database.User

A user object for use with the data store, whatever that might be (e.g. an RDMS or MongoDB)
Inheritance: IDataStoreEntity
显示文件 Open project: LocalGovDigital/pipeline Class Usage Examples

Public Methods

Method Description
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.

Method Details

HashPassword() public static method

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
return string

SetPassword() public method

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