feat: add im auth verification flows

This commit is contained in:
richjohnrambo
2026-08-12 00:20:27 +08:00
parent 1ffcb85bee
commit d239e37f56
16 changed files with 2030 additions and 22 deletions
+6
View File
@@ -226,9 +226,12 @@ func TestDispatchLogin(t *testing.T) {
aa := mock_auth.NewMockAuthHandler(ctrl)
uid := types.Uid(1)
oldSecurity := store.Security
store.Store = ss
store.Security = &testSecurityStore{version: 1}
defer func() {
store.Store = nil
store.Security = oldSecurity
ctrl.Finish()
}()
@@ -1194,11 +1197,14 @@ func TestDispatchAccNew(t *testing.T) {
aa := mock_auth.NewMockAuthHandler(ctrl)
uid := types.Uid(1)
oldSecurity := store.Security
store.Store = ss
store.Users = uu
store.Security = &testSecurityStore{version: 1}
defer func() {
store.Store = nil
store.Users = nil
store.Security = oldSecurity
ctrl.Finish()
}()