summaryrefslogtreecommitdiffstats
path: root/settings/ajax/decryptall.php
blob: 02a9bfe96b187989569da3218d001efdf6aa094c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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')));