usermanager: initialize auth sytem later

This prevents header errors when inspecting the CLI component in
plugin.php
This commit is contained in:
Andreas Gohr 2024-03-27 14:06:17 +01:00
parent ed46af861c
commit 4c1ed9da81
1 changed files with 2 additions and 5 deletions

View File

@ -15,11 +15,6 @@ use splitbrain\phpcli\TableFormatter;
*/
class cli_plugin_usermanager extends CLIPlugin
{
public function __construct()
{
parent::__construct();
auth_setup();
}
/** @inheritdoc */
protected function setup(Options $options)
@ -60,6 +55,8 @@ class cli_plugin_usermanager extends CLIPlugin
/** @inheritdoc */
protected function main(Options $options)
{
auth_setup();
/** @var AuthPlugin $auth */
global $auth;