aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_encryption/templates
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2013-05-15 11:42:22 +0200
committerBjörn Schießle <schiessle@owncloud.com>2013-05-15 11:42:22 +0200
commitd8ae2fa80d004a7c9de7e1c6d012a6c0b6a423aa (patch)
tree5b5686dd838209f92b58f2e905bda0059931ce63 /apps/files_encryption/templates
parent7461e9c2b5bdabd0b712f91a22445a0d933cf88f (diff)
downloadnextcloud-server-d8ae2fa80d004a7c9de7e1c6d012a6c0b6a423aa.tar.gz
nextcloud-server-d8ae2fa80d004a7c9de7e1c6d012a6c0b6a423aa.zip
only let the user change the recovery admin settings if a key passwords was entered.
Diffstat (limited to 'apps/files_encryption/templates')
-rw-r--r--apps/files_encryption/templates/settings-admin.php12
1 files changed, 5 insertions, 7 deletions
diff --git a/apps/files_encryption/templates/settings-admin.php b/apps/files_encryption/templates/settings-admin.php
index be7beecf696..95c1b66681c 100644
--- a/apps/files_encryption/templates/settings-admin.php
+++ b/apps/files_encryption/templates/settings-admin.php
@@ -9,16 +9,14 @@
<?php p($l->t( "Enable encryption passwords recovery key (allow sharing to recovery key):" )); ?>
<br />
<br />
- <?php if ( empty( $_['recoveryAdminUid'] ) ): ?>
- <input type="password" name="recoveryPassword" id="recoveryPassword" />
- <label for="recoveryPassword">Recovery account password</label>
- <br />
- <?php endif; ?>
+ <input type="password" name="recoveryPassword" id="recoveryPassword" />
+ <label for="recoveryPassword">Recovery account password</label>
+ <br />
<input
type='radio'
name='adminEnableRecovery'
value='1'
- <?php echo ( $_["recoveryEnabled"] == 1 ? 'checked="checked"' : '' ); ?> />
+ <?php echo ( $_["recoveryEnabled"] == 1 ? 'checked="checked"' : 'disabled' ); ?> />
<?php p($l->t( "Enabled" )); ?>
<br />
@@ -26,7 +24,7 @@
type='radio'
name='adminEnableRecovery'
value='0'
- <?php echo ( $_["recoveryEnabled"] == 0 ? 'checked="checked"' : '' ); ?> />
+ <?php echo ( $_["recoveryEnabled"] == 0 ? 'checked="checked"' : 'disabled' ); ?> />
<?php p($l->t( "Disabled" )); ?>
</p>
</fieldset>