feat(auth): allow trusted remote bootstrap and add installer

This commit is contained in:
chick
2026-07-19 21:10:16 +08:00
parent 49ee4e6570
commit ebed4c1969
8 changed files with 394 additions and 32 deletions
+1 -1
View File
@@ -71,7 +71,7 @@ export function ConsoleAuthSettings({
<header className="page-heading">
<p className="eyebrow">SYSTEM SETTINGS</p>
<h1 id="password-protection-title"></h1>
<p>访</p>
<p></p>
<p> HTTP使 HTTPS</p>
<p> SimAdmin 访</p>
</header>
+2
View File
@@ -79,6 +79,8 @@ describe('aggregate-console authentication UI', () => {
render(<settings.ConsoleAuthSettings dataSource={dataSource} />);
expect(await screen.findByRole('heading', { name: '密码保护' })).toBeTruthy();
expect(screen.queryByText(/首次密码仅允许从运行主机本机设置/)).toBeNull();
expect(screen.getByText(/可在当前管理台直接完成首次密码设置/)).toBeTruthy();
const toggle = screen.getByRole('checkbox', { name: /启用密码保护/ });
expect((toggle as HTMLInputElement).checked).toBe(false);
await user.click(toggle);