feat: add im auth verification flows
This commit is contained in:
@@ -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()
|
||||
}()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user