diff --git a/settings/ajax/decryptall.php b/settings/ajax/decryptall.php new file mode 100644 index 0000000000000000000000000000000000000000..02a9bfe96b187989569da3218d001efdf6aa094c --- /dev/null +++ b/settings/ajax/decryptall.php @@ -0,0 +1,14 @@ +<?php + +$status = OC_App::isEnabled('files_encryption'); +OC_App::enable('files_encryption'); + +OCA\Encryption\Crypt::decryptAll(); + +if ($status === false) { + OC_App::disable('files_encryption'); +} + + +\OCP\JSON::success(array('data' => array('message' => 'looks good'))); +