@ -206,7 +206,7 @@ class Keymanager {
* as no encryption takes place here
*/
public static function setPrivateKey( $key ) {
trigger_error("MOSH");
$user = \OCP\User::getUser();
$view = new \OC_FilesystemView( '/' . $user . '/files_encryption' );
@ -4,6 +4,7 @@
OCP\JSON::callCheck();
OC_JSON::checkLoggedIn();
// Manually load apps to ensure hooks work correctly (workaround for issue 1503)
OC_APP::loadApps();
$username = isset($_POST["username"]) ? $_POST["username"] : OC_User::getUser();