2014-03-27 19:35:34 +04:00
|
|
|
<form id="encryption" class="section">
|
|
|
|
<h2><?php p( $l->t( 'Encryption' ) ); ?></h2>
|
2013-06-03 17:27:31 +04:00
|
|
|
|
2014-12-03 18:52:44 +03:00
|
|
|
<?php if ( $_["initialized"] === \OCA\Files_Encryption\Session::NOT_INITIALIZED ): ?>
|
2014-07-28 13:31:06 +04:00
|
|
|
|
|
|
|
<?php p($l->t("Encryption App is enabled but your keys are not initialized, please log-out and log-in again")); ?>
|
|
|
|
|
2014-12-03 18:52:44 +03:00
|
|
|
<?php elseif ( $_["initialized"] === \OCA\Files_Encryption\Session::INIT_EXECUTED ): ?>
|
2014-03-27 19:35:34 +04:00
|
|
|
<p>
|
|
|
|
<a name="changePKPasswd" />
|
|
|
|
<label for="changePrivateKeyPasswd">
|
2014-08-11 23:31:15 +04:00
|
|
|
<em><?php p( $l->t( "Your private key password no longer matches your log-in password." ) ); ?></em>
|
2014-03-27 19:35:34 +04:00
|
|
|
</label>
|
|
|
|
<br />
|
2014-08-07 17:26:09 +04:00
|
|
|
<?php p( $l->t( "Set your old private key password to your current log-in password:" ) ); ?>
|
2014-03-27 19:35:34 +04:00
|
|
|
<?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>
|
2013-10-11 17:56:08 +04:00
|
|
|
<br />
|
2014-03-27 19:35:34 +04:00
|
|
|
<button
|
|
|
|
type="button"
|
|
|
|
name="submitChangePrivateKeyPassword"
|
|
|
|
disabled><?php p($l->t( "Update Private Key Password" )); ?>
|
|
|
|
</button>
|
|
|
|
<span class="msg"></span>
|
|
|
|
</p>
|
2013-09-02 13:26:11 +04:00
|
|
|
|
2014-12-03 18:52:44 +03:00
|
|
|
<?php elseif ( $_["recoveryEnabled"] && $_["privateKeySet"] && $_["initialized"] === \OCA\Files_Encryption\Session::INIT_SUCCESSFUL ): ?>
|
2014-03-27 19:35:34 +04:00
|
|
|
<br />
|
2014-10-07 14:52:01 +04:00
|
|
|
<p id="userEnableRecovery">
|
2014-03-27 19:35:34 +04:00
|
|
|
<label for="userEnableRecovery"><?php p( $l->t( "Enable password recovery:" ) ); ?></label>
|
2014-10-07 14:52:01 +04:00
|
|
|
<span class="msg"></span>
|
2014-03-27 19:35:34 +04:00
|
|
|
<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'
|
2014-09-27 19:20:06 +04:00
|
|
|
id='userEnableRecovery'
|
2014-03-27 19:35:34 +04:00
|
|
|
name='userEnableRecovery'
|
|
|
|
value='1'
|
2014-05-06 21:20:49 +04:00
|
|
|
<?php echo ( $_["recoveryEnabledForUser"] ? 'checked="checked"' : '' ); ?> />
|
2014-09-27 19:20:06 +04:00
|
|
|
<label for="userEnableRecovery"><?php p( $l->t( "Enabled" ) ); ?></label>
|
2014-03-27 19:35:34 +04:00
|
|
|
<br />
|
2013-06-03 17:27:31 +04:00
|
|
|
|
2014-03-27 19:35:34 +04:00
|
|
|
<input
|
|
|
|
type='radio'
|
2014-09-27 19:20:06 +04:00
|
|
|
id='userDisableRecovery'
|
2014-03-27 19:35:34 +04:00
|
|
|
name='userEnableRecovery'
|
|
|
|
value='0'
|
2014-05-06 21:20:49 +04:00
|
|
|
<?php echo ( $_["recoveryEnabledForUser"] === false ? 'checked="checked"' : '' ); ?> />
|
2014-09-27 19:20:06 +04:00
|
|
|
<label for="userDisableRecovery"><?php p( $l->t( "Disabled" ) ); ?></label>
|
2014-03-27 19:35:34 +04:00
|
|
|
</p>
|
|
|
|
<?php endif; ?>
|
2012-08-02 12:39:30 +04:00
|
|
|
</form>
|