add function to LdapInterface (#14761)
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
3cf05efdd9
Коммит
23e306bc3a
@@ -22,4 +22,5 @@ type LdapInterface interface {
|
|||||||
GetAllGroupsPage(page int, perPage int, opts model.LdapGroupSearchOpts) ([]*model.Group, int, *model.AppError)
|
GetAllGroupsPage(page int, perPage int, opts model.LdapGroupSearchOpts) ([]*model.Group, int, *model.AppError)
|
||||||
FirstLoginSync(userID, userAuthService, userAuthData, email string) *model.AppError
|
FirstLoginSync(userID, userAuthService, userAuthData, email string) *model.AppError
|
||||||
UpdateProfilePictureIfNecessary(*model.User, *model.Session)
|
UpdateProfilePictureIfNecessary(*model.User, *model.Session)
|
||||||
|
GetADLdapIdFromSAMLId(authData string) string
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -87,6 +87,20 @@ func (_m *LdapInterface) FirstLoginSync(userID string, userAuthService string, u
|
|||||||
return r0
|
return r0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GetADLdapIdFromSAMLId provides a mock function with given fields: authData
|
||||||
|
func (_m *LdapInterface) GetADLdapIdFromSAMLId(authData string) string {
|
||||||
|
ret := _m.Called(authData)
|
||||||
|
|
||||||
|
var r0 string
|
||||||
|
if rf, ok := ret.Get(0).(func(string) string); ok {
|
||||||
|
r0 = rf(authData)
|
||||||
|
} else {
|
||||||
|
r0 = ret.Get(0).(string)
|
||||||
|
}
|
||||||
|
|
||||||
|
return r0
|
||||||
|
}
|
||||||
|
|
||||||
// GetAllGroupsPage provides a mock function with given fields: page, perPage, opts
|
// GetAllGroupsPage provides a mock function with given fields: page, perPage, opts
|
||||||
func (_m *LdapInterface) GetAllGroupsPage(page int, perPage int, opts model.LdapGroupSearchOpts) ([]*model.Group, int, *model.AppError) {
|
func (_m *LdapInterface) GetAllGroupsPage(page int, perPage int, opts model.LdapGroupSearchOpts) ([]*model.Group, int, *model.AppError) {
|
||||||
ret := _m.Called(page, perPage, opts)
|
ret := _m.Called(page, perPage, opts)
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user