mirror of
https://github.com/friendica/friendica
synced 2024-12-29 19:22:18 +00:00
26 lines
657 B
PHP
26 lines
657 B
PHP
<?php
|
|
|
|
// SPDX-FileCopyrightText: 2010-2024 the Friendica project
|
|
//
|
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
/**
|
|
* Name: TEST-ADDON: Authentication "allow all"
|
|
* Description: For testing purpose only
|
|
* Version: 1.0
|
|
* Author: Philipp Holzer <admin@philipp.info>
|
|
*/
|
|
|
|
use Friendica\Core\Hook;
|
|
use Friendica\Model\User;
|
|
|
|
function authtest_install()
|
|
{
|
|
Hook::register('authenticate', 'tests/Util/authtest/authtest.php', 'authtest_authenticate');
|
|
}
|
|
|
|
function authtest_authenticate(&$b)
|
|
{
|
|
$b['authenticated'] = \Friendica\Test\Util\AuthTestConfig::$authenticated;
|
|
$b['user_record'] = User::getById(\Friendica\Test\Util\AuthTestConfig::$user_id);
|
|
}
|