From bb86a8ca36a1aeb73a54339340b0d1ddc2f249c3 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 ebb1ff2215b..e006a59771a 100644 --- a/lib/private/legacy/user.php +++ b/lib/private/legacy/user.php @@ -166,7 +166,7 @@ class OC_User { $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) {