abstract |
|---|
Base class for authentication Creating a new authentication method requires extending this class and overriding the check_credentials method
| Methods | ||||||
|---|---|---|---|---|---|---|
public
|
__construct(object $config)
Assign site config
Assign site config Parameters
Overriden by |
# | ||||
abstract
public
|
check_credentials(string $user, string $pass): bool
This is the method new auth mechs need to override.
This is the method new auth mechs need to override. Parameters
Returnstrue if the user is authenticated, false otherwise Implemented by |
# | ||||
public
|
save_auth_detail(object $session): void
Optional method for auth mech to save login details
Optional method for auth mech to save login details Parameters
Overriden by |
# | ||||
| Properties | |||
|---|---|---|---|
protected
|
|
$site_config
|
# |
public
static
|
|
$internal_users = false
|
# |