nextcloud/settings/ajax/decryptall.php

15 lines
269 B
PHP
Raw Normal View History

2013-06-10 16:04:43 +04:00
<?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')));