Skip to content

Commit

Permalink
add back-end as parameter to the pre-login hook
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
schiessle committed Sep 25, 2018
1 parent d96adc0 commit 28d6027
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/legacy/user.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 28d6027

Please sign in to comment.