docs: record D4 integration inputs

This commit is contained in:
wlx committed 2026-08-23 18:12:21 +08:00
1 parent fdf3a328ce
commit 78ed3c1103
11 files changed
+162 -29

No files matched your search

+10
View File
@@ -79,3 +79,13 @@ test('stored invitation values are hashes rather than plaintext', async () => {
assert.equal(stored?.codeHash, hashSecret(created.code))
assert.notEqual(stored?.codeHash, created.code)
})
test('development administrator can use a username account', async () => {
const { auth, repository } = createHarness()
await auth.ensureAdmin('adimin', 'test-admin-password', '平台管理员')
const login = await auth.login({ account: 'adimin', password: 'test-admin-password' }, {})
const stored = await repository.findUserByAccount('adimin')
assert.equal(login.user.role, 'admin')
assert.equal(stored?.accountKind, 'username')
})