|
|
@@ -66,7 +66,7 @@ class UserSecretPasswordController extends AdminController
|
|
|
SECRET_PASSWORD_STATUS::UNBIND->value => 'danger',
|
|
|
SECRET_PASSWORD_STATUS::WAIT_CHECK->value => 'warning',
|
|
|
]);
|
|
|
- $grid->column('password', '安全密码')->display(function () {
|
|
|
+ $grid->column('secret_password', '安全密码')->display(function () {
|
|
|
return '******';
|
|
|
});
|
|
|
$grid->column('last_check_at', '最后验证时间');
|
|
|
@@ -110,7 +110,7 @@ class UserSecretPasswordController extends AdminController
|
|
|
];
|
|
|
return $statusMap[$value] ?? '未知';
|
|
|
});
|
|
|
- $show->field('password', '安全密码')->as(function () {
|
|
|
+ $show->field('secret_password', '安全密码')->as(function () {
|
|
|
return '******';
|
|
|
});
|
|
|
$show->field('last_check_at', '最后验证时间');
|
|
|
@@ -153,7 +153,7 @@ class UserSecretPasswordController extends AdminController
|
|
|
SECRET_PASSWORD_STATUS::WAIT_CHECK->value => '等待验证',
|
|
|
])
|
|
|
->default(SECRET_PASSWORD_STATUS::UNBIND->value);
|
|
|
- $form->password('password', '安全密码')
|
|
|
+ $form->password('secret_password', '安全密码')
|
|
|
->help('不修改请留空')
|
|
|
->saving(function ($value) {
|
|
|
if ($value) {
|
|
|
@@ -176,7 +176,7 @@ class UserSecretPasswordController extends AdminController
|
|
|
}
|
|
|
|
|
|
// 如果是新建记录,密码必填
|
|
|
- if (!$form->password) {
|
|
|
+ if (!$form->secret_password) {
|
|
|
return $form->response()->error('安全密码不能为空');
|
|
|
}
|
|
|
}
|