2015-03-27 14:01:46 +00:00
|
|
|
<?php
|
|
|
|
/** @var array $_ */
|
2016-10-28 19:46:28 +00:00
|
|
|
/** @var \OCP\IL10N $l */
|
2015-03-31 14:23:31 +00:00
|
|
|
script('encryption', 'settings-personal');
|
|
|
|
script('core', 'multiselect');
|
2015-03-27 14:01:46 +00:00
|
|
|
?>
|
2015-05-04 09:51:02 +00:00
|
|
|
<form id="ocDefaultEncryptionModule" class="section">
|
2017-04-27 20:58:41 +00:00
|
|
|
<h2 data-anchor-name="basic-encryption-module"><?php p($l->t('Basic encryption module')); ?></h2>
|
2015-03-27 14:01:46 +00:00
|
|
|
|
2015-03-31 12:50:31 +00:00
|
|
|
<?php if ($_["initialized"] === \OCA\Encryption\Session::NOT_INITIALIZED ): ?>
|
2015-03-27 14:01:46 +00:00
|
|
|
|
2017-02-27 09:16:57 +00:00
|
|
|
<?php p($l->t("Encryption App is enabled, but your keys are not initialized. Please log-out and log-in again.")); ?>
|
2015-03-27 14:01:46 +00:00
|
|
|
|
2015-03-31 12:50:31 +00:00
|
|
|
<?php elseif ( $_["initialized"] === \OCA\Encryption\Session::INIT_EXECUTED ): ?>
|
2015-03-27 14:01:46 +00:00
|
|
|
<p>
|
|
|
|
<a name="changePKPasswd" />
|
|
|
|
<label for="changePrivateKeyPasswd">
|
|
|
|
<em><?php p( $l->t( "Your private key password no longer matches your log-in password." ) ); ?></em>
|
|
|
|
</label>
|
|
|
|
<br />
|
|
|
|
<?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; ?>
|
|
|
|
<br />
|
|
|
|
<input
|
|
|
|
type="password"
|
|
|
|
name="changePrivateKeyPassword"
|
|
|
|
id="oldPrivateKeyPassword" />
|
|
|
|
<label for="oldPrivateKeyPassword"><?php p($l->t( "Old log-in password" )); ?></label>
|
|
|
|
<br />
|
|
|
|
<input
|
|
|
|
type="password"
|
|
|
|
name="changePrivateKeyPassword"
|
|
|
|
id="newPrivateKeyPassword" />
|
|
|
|
<label for="newRecoveryPassword"><?php p($l->t( "Current log-in password" )); ?></label>
|
|
|
|
<br />
|
|
|
|
<button
|
|
|
|
type="button"
|
|
|
|
name="submitChangePrivateKeyPassword"
|
|
|
|
disabled><?php p($l->t( "Update Private Key Password" )); ?>
|
|
|
|
</button>
|
|
|
|
<span class="msg"></span>
|
|
|
|
</p>
|
|
|
|
|
2015-03-31 12:50:31 +00:00
|
|
|
<?php elseif ( $_["recoveryEnabled"] && $_["privateKeySet"] && $_["initialized"] === \OCA\Encryption\Session::INIT_SUCCESSFUL ): ?>
|
2015-03-27 14:01:46 +00:00
|
|
|
<br />
|
|
|
|
<p id="userEnableRecovery">
|
|
|
|
<label for="userEnableRecovery"><?php p( $l->t( "Enable password recovery:" ) ); ?></label>
|
|
|
|
<span class="msg"></span>
|
|
|
|
<br />
|
|
|
|
<em><?php p( $l->t( "Enabling this option will allow you to reobtain access to your encrypted files in case of password loss" ) ); ?></em>
|
|
|
|
<br />
|
|
|
|
<input
|
2017-07-07 12:30:22 +00:00
|
|
|
type="radio"
|
|
|
|
class="radio"
|
|
|
|
id="userEnableRecoveryCheckbox"
|
|
|
|
name="userEnableRecovery"
|
|
|
|
value="1"
|
2015-03-27 14:01:46 +00:00
|
|
|
<?php echo ( $_["recoveryEnabledForUser"] ? 'checked="checked"' : '' ); ?> />
|
2017-04-12 16:19:09 +00:00
|
|
|
<label for="userEnableRecoveryCheckbox"><?php p( $l->t( "Enabled" ) ); ?></label>
|
2015-03-27 14:01:46 +00:00
|
|
|
<br />
|
|
|
|
|
|
|
|
<input
|
2017-07-07 12:30:22 +00:00
|
|
|
type="radio"
|
|
|
|
class="radio"
|
|
|
|
id="userDisableRecoveryCheckbox"
|
|
|
|
name="userEnableRecovery"
|
|
|
|
value="0"
|
2015-03-27 14:01:46 +00:00
|
|
|
<?php echo ( $_["recoveryEnabledForUser"] === false ? 'checked="checked"' : '' ); ?> />
|
2017-04-12 16:19:09 +00:00
|
|
|
<label for="userDisableRecoveryCheckbox"><?php p( $l->t( "Disabled" ) ); ?></label>
|
2015-03-27 14:01:46 +00:00
|
|
|
</p>
|
|
|
|
<?php endif; ?>
|
|
|
|
</form>
|