From 830f5d24c77b863bd49eda0cbc4ba812add8065d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn=20Schie=C3=9Fle?= <schiessle@owncloud.com>
Date: Mon, 10 Jun 2013 14:04:43 +0200
Subject: [PATCH] add decryptall.php

---
 settings/ajax/decryptall.php | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 settings/ajax/decryptall.php

diff --git a/settings/ajax/decryptall.php b/settings/ajax/decryptall.php
new file mode 100644
index 0000000000..02a9bfe96b
--- /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')));
+
-- 
GitLab