add decryptall.php

remotes/origin/stable6
Björn Schießle 2013-06-10 14:04:43 +07:00 committed by Bjoern Schiessle
parent 0a3d662dd0
commit 830f5d24c7
1 changed files with 14 additions and 0 deletions

@ -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')));