summaryrefslogtreecommitdiffstats
path: root/apps/files_encryption/templates/settings-personal.php
diff options
context:
space:
mode:
authorSam Tuke <samtuke@owncloud.com>2013-05-04 16:14:38 +0200
committerSam Tuke <samtuke@owncloud.com>2013-05-04 16:14:38 +0200
commitc8946ea6086c642a5c367f2e5f63d58bc185c331 (patch)
treeaacba56be830d53517a958a222470414b1297d79 /apps/files_encryption/templates/settings-personal.php
parent9605d14a17522dd47c760a1c37a0374cfb0551b9 (diff)
downloadnextcloud-server-c8946ea6086c642a5c367f2e5f63d58bc185c331.tar.gz
nextcloud-server-c8946ea6086c642a5c367f2e5f63d58bc185c331.zip
Added support for user-specified password for adminRecovery account in admin settings page
Made encryptAll() (file migration for unencrypted + legacy encrypted files) run only on first login for each user (status stored in DB) Made recoveryAdmin user member of 'admin' user group automatically Set recoveryadmin settings to only display on user settings if enabled by an admin Updated encryption db xml schema
Diffstat (limited to 'apps/files_encryption/templates/settings-personal.php')
-rw-r--r--apps/files_encryption/templates/settings-personal.php38
1 files changed, 20 insertions, 18 deletions
diff --git a/apps/files_encryption/templates/settings-personal.php b/apps/files_encryption/templates/settings-personal.php
index 0cefde36b61..c81f361ced9 100644
--- a/apps/files_encryption/templates/settings-personal.php
+++ b/apps/files_encryption/templates/settings-personal.php
@@ -21,24 +21,26 @@
</ul>
<?php endif; ?>
- <p>
- <?php p($l->t( "Enable password recovery by sharing all files with administrator:" )); ?>
- <br />
- <input
- type='radio'
- name='userEnableRecovery'
- value='1'
- <?php echo ( $_["recoveryEnabled"] == 1 ? 'checked="checked"' : '' ); ?> />
- <?php p($l->t( "Enabled" )); ?>
- <br />
-
- <input
- type='radio'
- name='userEnableRecovery'
- value='0'
- <?php echo ( $_["recoveryEnabled"] == 0 ? 'checked="checked"' : '' ); ?> />
- <?php p($l->t( "Disabled" )); ?>
- </p>
+ <?php if ( $_["recoveryEnabled"] ): ?>
+ <p>
+ <?php p($l->t( "Enable password recovery by sharing all files with administrator:" )); ?>
+ <br />
+ <input
+ type='radio'
+ name='userEnableRecovery'
+ value='1'
+ <?php echo ( $_["recoveryEnabledForUser"] == 1 ? 'checked="checked"' : '' ); ?> />
+ <?php p($l->t( "Enabled" )); ?>
+ <br />
+
+ <input
+ type='radio'
+ name='userEnableRecovery'
+ value='0'
+ <?php echo ( $_["recoveryEnabledForUser"] == 0 ? 'checked="checked"' : '' ); ?> />
+ <?php p($l->t( "Disabled" )); ?>
+ </p>
+ <?php endif; ?>
</fieldset>
</form>