2024-03-10 17:11:56 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use yii\bootstrap5\Html;
|
|
|
|
use yii\bootstrap5\ActiveForm;
|
|
|
|
|
|
|
|
/** @var yii\web\View $this */
|
|
|
|
/** @var app\models\User $model */
|
|
|
|
/** @var ActiveForm $form */
|
|
|
|
|
|
|
|
$this->title = '初始化文件保险箱';
|
|
|
|
$this->params['breadcrumbs'][] = $this->title;
|
|
|
|
?>
|
|
|
|
<div class="vault-init">
|
|
|
|
<h1><?= Html::encode($this->title) ?></h1>
|
|
|
|
|
|
|
|
<p>第一次使用文件保险箱,请在下方输入保险箱密码:</p>
|
2024-03-13 13:53:31 +08:00
|
|
|
<p>
|
|
|
|
请牢记设置的保险箱密码,保险箱内所有文件都会使用此密码进行端到端加密,只有拥有正确密码的用户才可以解密文件(服务端也无法查看文件内容)
|
|
|
|
</p>
|
2024-03-10 17:11:56 +08:00
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-5">
|
2024-03-11 20:24:51 +08:00
|
|
|
<?php $form = ActiveForm::begin(['id' => 'init-vault-form', 'action' => ['vault/init'], 'method' => 'post']); ?>
|
2024-03-13 13:53:31 +08:00
|
|
|
<?= $form->field($model, 'input_vault_secret')->label('保险箱密码:')->passwordInput(['autofocus' => true]) ?>
|
2024-03-10 17:11:56 +08:00
|
|
|
<div class="form-group">
|
|
|
|
<?= Html::submitButton('初始化保险箱', ['class' => 'btn btn-primary']) ?>
|
|
|
|
</div>
|
|
|
|
<?php ActiveForm::end(); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|