make sure to enable incognito mode when mounting a public link and update init status of the encryption app

This commit is contained in:
Bjoern Schiessle 2014-05-20 17:54:14 +02:00
parent 87b0021e56
commit 961317d911
2 changed files with 3 additions and 0 deletions

View File

@ -100,6 +100,8 @@ class Session {
$privateKey = Crypt::decryptPrivateKey($encryptedKey, ''); $privateKey = Crypt::decryptPrivateKey($encryptedKey, '');
$this->setPublicSharePrivateKey($privateKey); $this->setPublicSharePrivateKey($privateKey);
$this->setInitialized(\OCA\Encryption\Session::INIT_SUCCESSFUL);
\OC_FileProxy::$enabled = $proxyStatus; \OC_FileProxy::$enabled = $proxyStatus;
} }
} }

View File

@ -38,6 +38,7 @@ class PublicAuth extends \Sabre\DAV\Auth\Backend\AbstractBasic {
*/ */
protected function validateUserPass($username, $password) { protected function validateUserPass($username, $password) {
$linkItem = \OCP\Share::getShareByToken($username, false); $linkItem = \OCP\Share::getShareByToken($username, false);
\OC_User::setIncognitoMode(true);
$this->share = $linkItem; $this->share = $linkItem;
if (!$linkItem) { if (!$linkItem) {
return false; return false;