mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-06 08:47:45 +02:00
[feature/auth-refactor] Refactor acp_board for new auth interface
Partially refactors acp_board for the new authentication interface. Leaves some questionable if statements in the file. Modifies the interface to correctly impletment the acp() method. Modifies each provider to comply with the above mentioned interface modification. PHPBB3-9734
This commit is contained in:
@@ -258,7 +258,7 @@ class phpbb_auth_provider_apache implements phpbb_auth_provider_interface
|
||||
return false;
|
||||
}
|
||||
|
||||
public function acp()
|
||||
public function acp($new)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
@@ -298,7 +298,7 @@ class phpbb_auth_provider_db implements phpbb_auth_provider_interface
|
||||
return;
|
||||
}
|
||||
|
||||
public function acp()
|
||||
public function acp($new)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
@@ -58,5 +58,5 @@ interface phpbb_auth_provider_interface
|
||||
* This function is used to output any required fields in the authentication
|
||||
* admin panel. It also defines any required configuration table fields.
|
||||
*/
|
||||
public function acp();
|
||||
public function acp($new);
|
||||
}
|
||||
|
@@ -22,7 +22,7 @@ if (!defined('IN_PHPBB'))
|
||||
*
|
||||
* @package auth
|
||||
*/
|
||||
class phpbb_auth_provider_db implements phpbb_auth_provider_interface
|
||||
class phpbb_auth_provider_ldap implements phpbb_auth_provider_interface
|
||||
{
|
||||
/**
|
||||
* Connect to ldap server
|
||||
@@ -284,7 +284,7 @@ class phpbb_auth_provider_db implements phpbb_auth_provider_interface
|
||||
* This function is used to output any required fields in the authentication
|
||||
* admin panel. It also defines any required configuration table fields.
|
||||
*/
|
||||
public function acp(&$new)
|
||||
public function acp($new)
|
||||
{
|
||||
global $user;
|
||||
|
||||
|
Reference in New Issue
Block a user