diff options
author | Björn Schießle <schiessle@owncloud.com> | 2013-06-05 18:53:02 +0200 |
---|---|---|
committer | Björn Schießle <schiessle@owncloud.com> | 2013-06-05 18:53:02 +0200 |
commit | 7fc5151d95d7b4c6f27fd1d6207c93015da8315a (patch) | |
tree | 412e78620424795ca1f0fce1a55bc29a861e3edb /apps/files_encryption/templates | |
parent | 58fd76607b3b874ecf9d852e9cc3dd95504a8fb8 (diff) | |
download | nextcloud-server-7fc5151d95d7b4c6f27fd1d6207c93015da8315a.tar.gz nextcloud-server-7fc5151d95d7b4c6f27fd1d6207c93015da8315a.zip |
add a hint that the admin can recover your files; Don't let the user change the recovery settings if no private key is set
Diffstat (limited to 'apps/files_encryption/templates')
-rw-r--r-- | apps/files_encryption/templates/settings-personal.php | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/apps/files_encryption/templates/settings-personal.php b/apps/files_encryption/templates/settings-personal.php index 8dab48828a7..38512453207 100644 --- a/apps/files_encryption/templates/settings-personal.php +++ b/apps/files_encryption/templates/settings-personal.php @@ -7,9 +7,15 @@ <?php if ( ! $_["privateKeySet"] ): ?>
<p>
<a name="changePKPasswd" />
- <label for="changePrivateKeyPasswd"><?php p( $l->t( "Your private key password no longer match your log-in password:" ) ); ?></label>
+ <label for="changePrivateKeyPasswd">
+ <?php p( $l->t( "Your private key password no longer match your log-in password:" ) ); ?>
+ </label>
<br />
- <em><?php p( $l->t( "Set your old private key password to your current log-in password." ) ); ?></em>
+ <em><?php p( $l->t( "Set your old private key password to your current log-in password." ) ); ?>
+ <?php if ( $_["recoveryEnabledForUser"] ):
+ p( $l->t( " If you don't remember your old password you can ask your administrator to recover your files." ) );
+ endif; ?>
+ </em>
<br />
<input
type="password"
@@ -34,7 +40,7 @@ <br />
- <?php if ( $_["recoveryEnabled"] ): ?>
+ <?php if ( $_["recoveryEnabled"] && $_["privateKeySet"] ): ?>
<p>
<label for="userEnableRecovery"><?php p( $l->t( "Enable password recovery:" ) ); ?></label>
<br />
|