make sure to enable incognito mode when mounting a public link and update init status of the encryption app
This commit is contained in:
parent
87b0021e56
commit
961317d911
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue