1
0
Fork 0
mirror of https://github.com/besterprotocol/besterd synced 2023-12-13 21:00:32 +01:00
besterd/source/server/accounts/base.d

23 lines
582 B
D
Raw Normal View History

2020-05-08 14:16:56 +02:00
module server.accounts.base;
/**
* This represents the accounts management system of
* the server. It is only an abstract class.
*/
public abstract class BesterDataStore
{
/**
* Creates a new account with the given `username` and
* `password`.
*/
public abstract void createAccount(string username, string password);
/**
* Check if the user, `username`, exists in the database.
*/
public abstract bool userExists(string username);
public abstract bool authenticate(string username, string password);
public abstract void shutdown();
}