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>
This commit is contained in:
parent
2e72efef3b
commit
bb86a8ca36
|
@ -166,7 +166,7 @@ class OC_User {
|
||||||
|
|
||||||
$uid = $backend->getCurrentUserId();
|
$uid = $backend->getCurrentUserId();
|
||||||
$run = true;
|
$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 ($uid) {
|
||||||
if (self::getUser() !== $uid) {
|
if (self::getUser() !== $uid) {
|
||||||
|
|
Loading…
Reference in New Issue