3 * Name: TEST-ADDON: Authentication "allow all"
4 * Description: For testing purpose only
6 * Author: Philipp Holzer <admin@philipp.info>
9 use Friendica\Core\Hook;
10 use Friendica\Model\User;
12 function authtest_install()
14 Hook::register('authenticate', 'tests/Util/authtest/authtest.php', 'authtest_authenticate');
17 function authtest_authenticate(&$b)
19 $b['authenticated'] = \Friendica\Test\Util\AuthTestConfig::$authenticated;
20 $b['user_record'] = User::getById(\Friendica\Test\Util\AuthTestConfig::$user_id);