Skip to content

Commit bb86a8c

Browse files
committed
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 <bjoern@schiessle.org>
1 parent 2e72efe commit bb86a8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/private/legacy/user.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ public static function loginWithApache(\OCP\Authentication\IApacheBackend $backe
166166

167167
$uid = $backend->getCurrentUserId();
168168
$run = true;
169-
OC_Hook::emit("OC_User", "pre_login", array("run" => &$run, "uid" => $uid));
169+
OC_Hook::emit("OC_User", "pre_login", array("run" => &$run, "uid" => $uid, 'backend' => $backend));
170170

171171
if ($uid) {
172172
if (self::getUser() !== $uid) {

0 commit comments

Comments
 (0)