C# Класс SpeakFriend.Utilities.LoginUtils

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
MandatoryChars char[][]

Открытые методы

Метод Описание
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.

Описание методов

CreateRandomPassword() публичный статический Метод

public static CreateRandomPassword ( int PasswordLength ) : string
PasswordLength int
Результат string

GetNextUsername() публичный статический Метод

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
Результат string

GetPasswordHash() публичный статический Метод

Converts the given Password to an md5 Hash
public static GetPasswordHash ( string password ) : string
password string
Результат string

GetRandomPassword() публичный статический Метод

public static GetRandomPassword ( ) : string
Результат string

IsPasswordOk() публичный статический Метод

public static IsPasswordOk ( string password ) : bool
password string
Результат bool

IsValidPassword() публичный статический Метод

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
Результат bool

Описание свойств

MandatoryChars публичное статическое свойство

public static char[][] MandatoryChars
Результат char[][]