fix: send canonical login identifier

This commit is contained in:
2026-09-01 19:39:17 +08:00
parent 519ce1dc96
commit 440cae9c6d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ describe('API error diagnostics', () => {
}
}
await http.post('/auth/login', { username: 'operator', password: 'secret' })
await http.post('/auth/login', { loginId: 'operator', password: 'secret' })
expect(authorization).toBeUndefined()
localStorage.removeItem('cc-admin-token')