From 51d2deeea911e84ea2e56b78544445de22f881b9 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 8 Feb 2021 19:11:31 +0300 Subject: fix hierarchy of authentication modules, make everything extend Auth_Base and implement hook_auth_user() for pluginhost --- plugins/auth_remote/init.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'plugins/auth_remote') diff --git a/plugins/auth_remote/init.php b/plugins/auth_remote/init.php index 7635080a0..71f6cae2b 100644 --- a/plugins/auth_remote/init.php +++ b/plugins/auth_remote/init.php @@ -1,9 +1,7 @@ host = $host; - $this->base = new Auth_Base(); $host->add_hook($host::HOOK_AUTH_USER, $this); } @@ -53,7 +50,7 @@ class Auth_Remote extends Plugin implements IAuthModule { if (!$try_login) $try_login = $this->get_login_by_ssl_certificate(); if ($try_login) { - $user_id = $this->base->auto_create_user($try_login, $password); + $user_id = $this->auto_create_user($try_login, $password); if ($user_id) { $_SESSION["fake_login"] = $try_login; -- cgit v1.2.3-54-g00ecf