C# Class JoanCEdwards.ExamLibrary.User

User Business Class
Datei anzeigen Open project: pragmaticpat/EdwardsFoundation

Public Methods

Method Description
Exists ( string userName ) : bool

Existses the specified user name.

GetUser ( string email ) : UserProfile

Gets the user.

GetUsers ( string searchString ) : List
HashPassword ( string valueToHash ) : string

Hashes the password.

IsValid ( string userName, string password ) : bool

Determines whether the specified user and password is valid.

ResetPassword ( string userName ) : string

Resets the password.

Save ( UserProfile profile ) : UserProfile

Private Methods

Method Description
CreateHash ( string valueToHash, string key ) : string

Creates the hash.

Method Details

Exists() public static method

Existses the specified user name.
public static Exists ( string userName ) : bool
userName string Name of the user.
return bool

GetUser() public static method

Gets the user.
public static GetUser ( string email ) : UserProfile
email string The email.
return JoanCEdwards.DAO.UserProfile

GetUsers() public static method

public static GetUsers ( string searchString ) : List
searchString string
return List

HashPassword() public static method

Hashes the password.
public static HashPassword ( string valueToHash ) : string
valueToHash string The value to hash.
return string

IsValid() public static method

Determines whether the specified user and password is valid.
public static IsValid ( string userName, string password ) : bool
userName string Name of the user.
password string The password.
return bool

ResetPassword() public static method

Resets the password.
public static ResetPassword ( string userName ) : string
userName string Name of the user.
return string

Save() public static method

public static Save ( UserProfile profile ) : UserProfile
profile JoanCEdwards.DAO.UserProfile
return JoanCEdwards.DAO.UserProfile