C# Class JoanCEdwards.ExamLibrary.User

User Business Class
Afficher le fichier Open project: pragmaticpat/EdwardsFoundation

Méthodes publiques

Méthode 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

Méthode Description
CreateHash ( string valueToHash, string key ) : string

Creates the hash.

Method Details

Exists() public static méthode

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

GetUser() public static méthode

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

GetUsers() public static méthode

public static GetUsers ( string searchString ) : List
searchString string
Résultat List

HashPassword() public static méthode

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

IsValid() public static méthode

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.
Résultat bool

ResetPassword() public static méthode

Resets the password.
public static ResetPassword ( string userName ) : string
userName string Name of the user.
Résultat string

Save() public static méthode

public static Save ( UserProfile profile ) : UserProfile
profile JoanCEdwards.DAO.UserProfile
Résultat JoanCEdwards.DAO.UserProfile