C# Класс TDSM.Core.Data.AuthenticatedUsers

Authenticated users.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
CreateUser ( string username, string password, bool op = false ) : bool

Creates a user.

DeleteUser ( string username ) : bool

Removes a user from the database by name

FindUsersByPrefix ( string search ) : string[]

Finds a list of users matching a prefix

GetUser ( string username ) : DbPlayer

Gets the user from the database by name

GetUserPassword ( string username ) : string

Gets the user password.

UpdateUser ( string username, bool op = false ) : bool

Updates a user in the database.

UpdateUser ( string username, string password ) : bool

Updates a user in the database.

UpdateUser ( string username, string password, bool op = false ) : bool

Updates a user in the database.

UserExists ( string username ) : bool

Checks if a user exists

Приватные методы

Метод Описание
Hash ( string username, string password ) : string
Initialise ( ) : void

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

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

Creates a user.
public static CreateUser ( string username, string password, bool op = false ) : bool
username string Username.
password string Password.
op bool If set to true op.
Результат bool

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

Removes a user from the database by name
public static DeleteUser ( string username ) : bool
username string Username.
Результат bool

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

Finds a list of users matching a prefix
public static FindUsersByPrefix ( string search ) : string[]
search string Search.
Результат string[]

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

Gets the user from the database by name
public static GetUser ( string username ) : DbPlayer
username string Username.
Результат DbPlayer

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

Gets the user password.
public static GetUserPassword ( string username ) : string
username string Username.
Результат string

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

Updates a user in the database.
public static UpdateUser ( string username, bool op = false ) : bool
username string Username.
op bool If set to true op.
Результат bool

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

Updates a user in the database.
public static UpdateUser ( string username, string password ) : bool
username string Username.
password string Password.
Результат bool

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

Updates a user in the database.
public static UpdateUser ( string username, string password, bool op = false ) : bool
username string Username.
password string Password.
op bool If set to true op.
Результат bool

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

Checks if a user exists
public static UserExists ( string username ) : bool
username string Username.
Результат bool