修复密码重置遗漏撤销客户端授权码并补充事务隔离回归
Security Checks / security (push) Waiting to run

This commit is contained in:
xuans committed 2026-09-20 02:29:08 +08:00
1 parent 4e47dbff6c
commit 7aec99de89
8 files changed
+110 -8

No files matched your search

+1 -1
View File
@@ -19,7 +19,7 @@ func newFixture(t *testing.T) *Service {
t.Fatal(err)
}
t.Cleanup(func() { _ = engine.Close() })
if err := engine.Sync2(&models.User{}, &models.SecurityQuestion{}, &models.RecoveryCode{}, &models.WebAuthnCredential{}, &models.ProtocolCredential{}); err != nil {
if err := engine.Sync2(&models.User{}, &models.SecurityQuestion{}, &models.RecoveryCode{}, &models.WebAuthnCredential{}, &models.ProtocolCredential{}, &models.ClientCredential{}); err != nil {
t.Fatal(err)
}
if _, err := engine.Insert(&models.User{Account: "alice", Name: "Alice", Password: "unused", Role: "user"}); err != nil {