From: Michiel@unhosted Date: Mon, 12 Sep 2011 13:04:21 +0000 (+0200) Subject: offer login popup from oauth dialog, correct base uri X-Git-Tag: v3.0~211 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d0746d7e32ba4a9d125633e89806174692291edc;p=nextcloud-server.git offer login popup from oauth dialog, correct base uri --- diff --git a/apps/unhosted/compat.php b/apps/unhosted/compat.php index 88dac5e7b55..5e0f1a09010 100644 --- a/apps/unhosted/compat.php +++ b/apps/unhosted/compat.php @@ -67,7 +67,7 @@ if(count($pathParts) >= 8 && $pathParts[0] == '' && $pathParts[2] == 'unhosted' $server = new Sabre_DAV_Server($publicDir); // Path to our script - $server->setBaseUri("$WEBROOT/apps/core_unhosted/compat.php/$ownCloudUser"); + $server->setBaseUri("$WEBROOT/apps/unhosted/compat.php/$ownCloudUser"); // Auth backend $authBackend = new OC_Connector_Sabre_Auth_ro_oauth(OC_UnhostedWeb::getValidTokens($ownCloudUser, $userName.'@'.$userHost, $dataScope)); @@ -100,7 +100,12 @@ if(count($pathParts) >= 8 && $pathParts[0] == '' && $pathParts[2] == 'unhosted' $token=OC_UnhostedWeb::createDataScope($appUrl, $userAddress, $dataScope); header('Location: '.$_GET['redirect_uri'].'#access_token='.$token.'&token_type=unhosted'); } else { - die('not logged in: '.var_export($pathParts, true)); + die('Please ' + .'' + .', close the pop-up, and ' + .'
'); } } else { echo '
';