Sign in verified accounts automatically and require eight-character passwords

This commit is contained in:
2026-10-13 16:33:52 +09:00
parent 9e0f493228
commit d6e60ecb3b
18 changed files with 538 additions and 63 deletions

View File

@@ -374,8 +374,12 @@ test('수락 직전 오프라인 검사 및 여러 탭 합산', async () => {
await new Promise((r) => setTimeout(r, 35));
assert.equal((await f.call(a, '/discovery/devices')).json().devices.length, 1);
const id = (await f.request(a, b)).json().requestId;
const disconnected = new Promise<void>((resolve) => {
f.service.io!.sockets.sockets.get(second.id!)!.once('disconnect', () => resolve());
});
second.disconnect();
await new Promise((r) => setTimeout(r, 35));
await disconnected;
await new Promise((r) => setTimeout(r, f.cfg.offlineGraceMs + 15));
assert.equal((await f.call(a, '/discovery/devices')).json().devices.length, 0);
assert.equal(
(await f.call(b, `/transfer-requests/${id}/accept`, 'POST', {}, randomUUID())).statusCode,