C# Class SpeakFriend.Utilities.LoginUtils

Afficher le fichier Open project: teamaton/speak-lib

Méthodes publiques

Свойство Type Description
MandatoryChars char[][]

Méthodes publiques

Méthode Description
CreateRandomPassword ( int PasswordLength ) : string
GetNextUsername ( ISession session, Type userType, string nameColumn ) : string

Returns the next available username based on the last entries in the DB.

GetPasswordHash ( string password ) : string

Converts the given Password to an md5 Hash

GetRandomPassword ( ) : string
IsPasswordOk ( string password ) : bool
IsValidPassword ( string userInput, string hashedMd5 ) : bool

Returns true, if the given string string has the same hash, as the stored database value.

Method Details

CreateRandomPassword() public static méthode

public static CreateRandomPassword ( int PasswordLength ) : string
PasswordLength int
Résultat string

GetNextUsername() public static méthode

Returns the next available username based on the last entries in the DB.
public static GetNextUsername ( ISession session, Type userType, string nameColumn ) : string
session ISession
userType System.Type
nameColumn string
Résultat string

GetPasswordHash() public static méthode

Converts the given Password to an md5 Hash
public static GetPasswordHash ( string password ) : string
password string
Résultat string

GetRandomPassword() public static méthode

public static GetRandomPassword ( ) : string
Résultat string

IsPasswordOk() public static méthode

public static IsPasswordOk ( string password ) : bool
password string
Résultat bool

IsValidPassword() public static méthode

Returns true, if the given string string has the same hash, as the stored database value.
public static IsValidPassword ( string userInput, string hashedMd5 ) : bool
userInput string
hashedMd5 string
Résultat bool

Property Details

MandatoryChars public_oe static_oe property

public static char[][] MandatoryChars
Résultat char[][]