C# 클래스 SpeakFriend.Utilities.LoginUtils

파일 보기 프로젝트 열기: teamaton/speak-lib

공개 프로퍼티들

프로퍼티 타입 설명
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[][]