]> source.dussan.org Git - nextcloud-server.git/commitdiff
get effective username after webdav login, fixes oc-2108
authorArthur Schiwon <blizzz@owncloud.com>
Tue, 23 Oct 2012 11:37:22 +0000 (13:37 +0200)
committerArthur Schiwon <blizzz@owncloud.com>
Tue, 23 Oct 2012 11:38:46 +0000 (13:38 +0200)
lib/connector/sabre/auth.php

index 0c34c7ea29fc20f66ccd76974dbfa5bcd4a3431f..db8f005745a4fccd36f64797f815afeb34fd2145 100644 (file)
@@ -37,7 +37,7 @@ class OC_Connector_Sabre_Auth extends Sabre_DAV_Auth_Backend_AbstractBasic {
                } else {
                        OC_Util::setUpFS();//login hooks may need early access to the filesystem
                        if(OC_User::login($username, $password)) {
-                               OC_Util::setUpFS($username);
+                               OC_Util::setUpFS(OC_User::getUser());
                                return true;
                        }
                        else{