webman迁移

This commit is contained in:
2026-03-08 23:57:47 +08:00
parent 3c67427bbb
commit 699761aad2
19 changed files with 145 additions and 41 deletions

View File

@@ -16,10 +16,11 @@ class AdminInfo extends Backend
protected array|string $preExcludeFields = ['username', 'last_login_time', 'password', 'salt', 'status'];
protected array $authAllowFields = ['id', 'username', 'nickname', 'avatar', 'email', 'mobile', 'motto', 'last_login_time'];
protected function initController(Request $request): void
protected function initController(Request $request): ?Response
{
$this->auth->setAllowFields($this->authAllowFields);
$this->model = $this->auth->getAdmin();
return null;
}
public function index(Request $request): Response