2014-03-27 15:35:34 +00:00
|
|
|
<form id="encryption" class="section">
|
|
|
|
<h2><?php p( $l->t( 'Encryption' ) ); ?></h2>
|
2013-06-03 13:27:31 +00:00
|
|
|
|
2014-07-28 09:31:06 +00:00
|
|
|
<?php if ( $_["initialized"] === \OCA\Encryption\Session::NOT_INITIALIZED ): ?>
|
|
|
|
|
|
|
|
<?php p($l->t("Encryption App is enabled but your keys are not initialized, please log-out and log-in again")); ?>
|
|
|
|
|
|
|
|
<?php elseif ( $_["initialized"] === \OCA\Encryption\Session::INIT_EXECUTED ): ?>
|
2014-03-27 15:35:34 +00:00
|
|
|
<p>
|
|
|
|
<a name="changePKPasswd" />
|
|
|
|
<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." ) ); ?>
|
|
|
|
<?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"
|
|
|
|
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>
|
2013-10-11 13:56:08 +00:00
|
|
|
<br />
|
2014-03-27 15:35:34 +00:00
|
|
|
<button
|
|
|
|
type="button"
|
|
|
|
name="submitChangePrivateKeyPassword"
|
|
|
|
disabled><?php p($l->t( "Update Private Key Password" )); ?>
|
|
|
|
</button>
|
|
|
|
<span class="msg"></span>
|
|
|
|
</p>
|
2013-09-02 09:26:11 +00:00
|
|
|
|
2014-07-28 09:31:06 +00:00
|
|
|
<?php elseif ( $_["recoveryEnabled"] && $_["privateKeySet"] && $_["initialized"] === \OCA\Encryption\Session::INIT_SUCCESSFUL ): ?>
|
2014-03-27 15:35:34 +00:00
|
|
|
<br />
|
|
|
|
<p>
|
|
|
|
<label for="userEnableRecovery"><?php p( $l->t( "Enable password recovery:" ) ); ?></label>
|
|
|
|
<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
|
|
|
|
type='radio'
|
|
|
|
name='userEnableRecovery'
|
|
|
|
value='1'
|
2014-05-06 17:20:49 +00:00
|
|
|
<?php echo ( $_["recoveryEnabledForUser"] ? 'checked="checked"' : '' ); ?> />
|
2014-03-27 15:35:34 +00:00
|
|
|
<?php p( $l->t( "Enabled" ) ); ?>
|
|
|
|
<br />
|
2013-06-03 13:27:31 +00:00
|
|
|
|
2014-03-27 15:35:34 +00:00
|
|
|
<input
|
|
|
|
type='radio'
|
|
|
|
name='userEnableRecovery'
|
|
|
|
value='0'
|
2014-05-06 17:20:49 +00:00
|
|
|
<?php echo ( $_["recoveryEnabledForUser"] === false ? 'checked="checked"' : '' ); ?> />
|
2014-03-27 15:35:34 +00:00
|
|
|
<?php p( $l->t( "Disabled" ) ); ?>
|
|
|
|
<div id="recoveryEnabledSuccess"><?php p( $l->t( 'File recovery settings updated' ) ); ?></div>
|
|
|
|
<div id="recoveryEnabledError"><?php p( $l->t( 'Could not update file recovery' ) ); ?></div>
|
|
|
|
</p>
|
|
|
|
<?php endif; ?>
|
2012-08-02 08:39:30 +00:00
|
|
|
</form>
|