db
class db extends base
Database authentication provider for phpBB3 This is for authentication via the integrated user table
Properties
protected factory | $captcha_factory | ||
protected config | $config | ||
protected driver_interface | $db | ||
protected user | $user | ||
protected manager | $passwords_manager | phpBB passwords manager |
Methods
Checks whether the user is currently identified to the authentication provider.
This function is used to output any required fields in the authentication admin panel. It also defines any required configuration table fields.
This function updates the template with variables related to the acp options with whatever configuration values are passed to it as an array.
Returns an array of data necessary to build custom elements on the login form.
Returns an array of data necessary to build the ucp_auth_link page
The session validation function checks whether the user is still logged into phpBB.
Checks to see if $login_link_data contains all information except for the user_id of an account needed to successfully link an external account to a forum account.
Database Authentication Constructor
Performs login.
Details
in
base at line 24
bool|string|void
init()
Checks whether the user is currently identified to the authentication provider.
Called in acp_board while setting authentication plugins. Changing to an authentication provider will not be permitted in acp_board if there is an error.
in
base at line 31
array|void
autologin()
Autologin function
in
base at line 38
array|void
acp()
This function is used to output any required fields in the authentication admin panel. It also defines any required configuration table fields.
in
base at line 45
array|void
get_acp_template(config $new_config)
This function updates the template with variables related to the acp options with whatever configuration values are passed to it as an array.
It then returns the name of the acp file related to this authentication provider.
in
base at line 52
array|void
get_login_data()
Returns an array of data necessary to build custom elements on the login form.
in
base at line 59
array|void
get_auth_link_data(int $user_id = 0)
Returns an array of data necessary to build the ucp_auth_link page
in
base at line 66
logout(array $data, bool $new_session)
Performs additional actions during logout.
in
base at line 73
bool|void
validate_session(array $user)
The session validation function checks whether the user is still logged into phpBB.
in
base at line 80
string|null
login_link_has_necessary_data(array $login_link_data)
Checks to see if $login_link_data contains all information except for the user_id of an account needed to successfully link an external account to a forum account.
in
base at line 88
link_account(array $link_data)
Links an external account to a phpBB account.
in
base at line 95
unlink_account(array $link_data)
Unlinks an external account from a phpBB account.
at line 57
__construct(factory $captcha_factory, config $config, driver_interface $db, manager $passwords_manager, user $user)
Database Authentication Constructor
at line 69
array
login(string $username, string $password)
Performs login.