summaryrefslogtreecommitdiffstats
path: root/settings/templates/personal.php
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2014-05-13 09:25:16 -0400
committerBjörn Schießle <schiessle@owncloud.com>2014-05-13 09:25:16 -0400
commitb8de1e5d716c416beae328506e368cd0554509e1 (patch)
tree8b13942c27547f4c4266699efc445b0bfe96296d /settings/templates/personal.php
parente934129bf6125c50ccede651b544d7ab07d5378a (diff)
parenta9ac11718e62017c70682f99eb35b43b1ef9c498 (diff)
downloadnextcloud-server-b8de1e5d716c416beae328506e368cd0554509e1.tar.gz
nextcloud-server-b8de1e5d716c416beae328506e368cd0554509e1.zip
Merge pull request #8398 from owncloud/enc_backup_keys
backup the encryption key after the encryption was disabled
Diffstat (limited to 'settings/templates/personal.php')
-rw-r--r--settings/templates/personal.php35
1 files changed, 33 insertions, 2 deletions
diff --git a/settings/templates/personal.php b/settings/templates/personal.php
index cc1fce88c9f..afa3f5d700a 100644
--- a/settings/templates/personal.php
+++ b/settings/templates/personal.php
@@ -144,10 +144,15 @@ if($_['passwordChangeSupported']) {
};?>
<?php if($_['enableDecryptAll']): ?>
-<div class="section" id="decryptAll">
+<div class="section">
+
<h2>
<?php p( $l->t( 'Encryption' ) ); ?>
</h2>
+
+ <?php if($_['filesStillEncrypted']): ?>
+
+ <div id="decryptAll">
<?php p($l->t( "The encryption app is no longer enabled, please decrypt all your files" )); ?>
<p>
<input
@@ -164,8 +169,34 @@ if($_['passwordChangeSupported']) {
<span class="msg"></span>
</p>
<br />
+ </div>
+
+ <?php endif; ?>
+
+
+
+ <div id="restoreBackupKeys" <?php $_['backupKeysExists'] ? '' : print_unescaped("class='hidden'") ?>>
+
+ <?php p($l->t( "Your encryption keys are moved to a backup location. If something went wrong you can restore the keys. Only delete them permanently if you are sure that all files are decrypted correctly." )); ?>
+ <p>
+ <button
+ type="button"
+ name="submitRestoreKeys"><?php p($l->t( "Restore Encryption Keys" )); ?>
+ </button>
+ <button
+ type="button"
+ name="submitDeleteKeys"><?php p($l->t( "Delete Encryption Keys" )); ?>
+ </button>
+ <span class="msg"></span>
+
+ </p>
+ <br />
+
+ </div>
+
+
</div>
-<?php endif; ?>
+ <?php endif; ?>
<div class="section">
<h2><?php p($l->t('Version'));?></h2>