Merge pull request #11373 from nextcloud/gs-and-saml-stable14

[stable14] make the server ready to use global scale with SAML as auth back-end
This commit is contained in:
blizzz 2018-09-26 11:04:54 +02:00 committed by GitHub
commit 6c4f3ac1d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {