class Local extends Singleton implements ISource

The regular internal authentication source

Does not exist in the database. Stores passwords as hashes in the Account object.

Properties

static private $instances from  Singleton

Methods

static Singleton
GetInstance()

Get the instance of the singleton

__construct()

Construct the singleton for use.

bool
VerifyAccountPassword(Account $account, string $password)

Verify the password given

static void
SetPassword(Account $account, string $password)

Hashes and sets the given password on a given account

Details

in Singleton at line 21
static Singleton GetInstance()

Get the instance of the singleton

Return Value

Singleton

Exceptions

MissingSingletonException

if not yet constructed

in Singleton at line 35
__construct()

Construct the singleton for use.

This can be overriden if it requires more arguments

Exceptions

DuplicateSingletonException

if already constructed

at line 14
bool VerifyAccountPassword(Account $account, string $password)

Verify the password given

Parameters

Account $account

the account to check (contains the username or other info)

string $password

the password to check

Return Value

bool

true if the password check is valid

at line 31
static void SetPassword(Account $account, string $password)

Hashes and sets the given password on a given account

Parameters

Account $account

the account to set

string $password

the password to set

Return Value

void