summaryrefslogtreecommitdiffstats
path: root/lib/base.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-10-05 11:50:36 +0200
committerJoas Schilling <nickvergessen@owncloud.com>2015-10-06 15:16:19 +0200
commit13dd62f7b040fdd4d638a50ad687d908a09d9bc8 (patch)
tree9980f30421dee26e9236b467d2501be6b15cb4a8 /lib/base.php
parent191f1b2d49afe980f43bdf6c0cc2c8cbb7f88c91 (diff)
downloadnextcloud-server-13dd62f7b040fdd4d638a50ad687d908a09d9bc8.tar.gz
nextcloud-server-13dd62f7b040fdd4d638a50ad687d908a09d9bc8.zip
Make sure that remote shares use the correct uid casing
Diffstat (limited to 'lib/base.php')
-rw-r--r--lib/base.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/base.php b/lib/base.php
index 12c23f5ce1b..5deba7866f3 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -608,6 +608,14 @@ class OC {
OC_User::useBackend(new OC_User_Database());
OC_Group::useBackend(new OC_Group_Database());
+ // Subscribe to the hook
+ \OCP\Util::connectHook(
+ '\OCA\Files_Sharing\API\Server2Server',
+ 'preLoginNameUsedAsUserName',
+ '\OC_User_Database',
+ 'preLoginNameUsedAsUserName'
+ );
+
//setup extra user backends
if (!self::checkUpgrade(false)) {
OC_User::setupBackends();