From 28d60274ce6f3947ed03a49d2a7b3e1672622e20 Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Fri, 14 Sep 2018 17:23:06 +0200 Subject: [PATCH] add back-end as parameter to the pre-login hook This is needed for the Global Scale setup to allow the master node to perform different operations during login, depending on the user management. Because in case of SAML, the authentication at the idp happens at the master node. Signed-off-by: Bjoern Schiessle --- lib/private/legacy/user.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/legacy/user.php b/lib/private/legacy/user.php index ebb1ff2215be7..e006a59771a7b 100644 --- a/lib/private/legacy/user.php +++ b/lib/private/legacy/user.php @@ -166,7 +166,7 @@ public static function loginWithApache(\OCP\Authentication\IApacheBackend $backe $uid = $backend->getCurrentUserId(); $run = true; - OC_Hook::emit("OC_User", "pre_login", array("run" => &$run, "uid" => $uid)); + OC_Hook::emit("OC_User", "pre_login", array("run" => &$run, "uid" => $uid, 'backend' => $backend)); if ($uid) { if (self::getUser() !== $uid) {