mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-06-07 09:54:27 +02:00
Changes:
- added more type-hints - cleaned up some files (curly braces, spaces)
This commit is contained in:
parent
a1e17968d1
commit
04df7f6e05
74 changed files with 603 additions and 529 deletions
|
@ -54,6 +54,7 @@
|
|||
* ...etc.
|
||||
*/
|
||||
|
||||
use Friendica\App;
|
||||
use Friendica\Core\Hook;
|
||||
use Friendica\Core\Logger;
|
||||
use Friendica\Database\DBA;
|
||||
|
@ -67,12 +68,12 @@ function ldapauth_install()
|
|||
Hook::register('authenticate', 'addon/ldapauth/ldapauth.php', 'ldapauth_hook_authenticate');
|
||||
}
|
||||
|
||||
function ldapauth_load_config(\Friendica\App $a, ConfigFileLoader $loader)
|
||||
function ldapauth_load_config(App $a, ConfigFileLoader $loader)
|
||||
{
|
||||
$a->getConfigCache()->load($loader->loadAddonConfig('ldapauth'));
|
||||
}
|
||||
|
||||
function ldapauth_hook_authenticate($a, &$b)
|
||||
function ldapauth_hook_authenticate(App $a, array &$b)
|
||||
{
|
||||
$user = ldapauth_authenticate($b['username'], $b['password']);
|
||||
if (!empty($user['uid'])) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue