]> source.dussan.org Git - nextcloud-server.git/commitdiff
use username, not passed loginname, might differ
authorArthur Schiwon <blizzz@owncloud.com>
Thu, 13 Dec 2012 00:30:25 +0000 (01:30 +0100)
committerArthur Schiwon <blizzz@owncloud.com>
Fri, 14 Dec 2012 00:06:00 +0000 (01:06 +0100)
lib/connector/sabre/auth.php

index db8f005745a4fccd36f64797f815afeb34fd2145..4224dbbb14eca05f9fbf8cada70a3155ab956d35 100644 (file)
@@ -32,7 +32,7 @@ class OC_Connector_Sabre_Auth extends Sabre_DAV_Auth_Backend_AbstractBasic {
         */
        protected function validateUserPass($username, $password) {
                if (OC_User::isLoggedIn()) {
-                       OC_Util::setupFS($username);
+                       OC_Util::setupFS(OC_User::getUser());
                        return true;
                } else {
                        OC_Util::setUpFS();//login hooks may need early access to the filesystem