MM-17117: Updates einterface for FirstLoginSync. (#11737)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
2fa63b10ec
Коммит
c74f685c76
@@ -20,5 +20,5 @@ type LdapInterface interface {
|
||||
MigrateIDAttribute(toAttribute string) error
|
||||
GetGroup(groupUID string) (*model.Group, *model.AppError)
|
||||
GetAllGroupsPage(page int, perPage int, opts model.LdapGroupSearchOpts) ([]*model.Group, int, *model.AppError)
|
||||
FirstLoginSync(userID, userAuthService, userAuthData string) *model.AppError
|
||||
FirstLoginSync(userID, userAuthService, userAuthData, email string) *model.AppError
|
||||
}
|
||||
|
||||
@@ -69,13 +69,13 @@ func (_m *LdapInterface) DoLogin(id string, password string) (*model.User, *mode
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// FirstLoginSync provides a mock function with given fields: userID, userAuthService, userAuthData
|
||||
func (_m *LdapInterface) FirstLoginSync(userID string, userAuthService string, userAuthData string) *model.AppError {
|
||||
ret := _m.Called(userID, userAuthService, userAuthData)
|
||||
// FirstLoginSync provides a mock function with given fields: userID, userAuthService, userAuthData, email
|
||||
func (_m *LdapInterface) FirstLoginSync(userID string, userAuthService string, userAuthData string, email string) *model.AppError {
|
||||
ret := _m.Called(userID, userAuthService, userAuthData, email)
|
||||
|
||||
var r0 *model.AppError
|
||||
if rf, ok := ret.Get(0).(func(string, string, string) *model.AppError); ok {
|
||||
r0 = rf(userID, userAuthService, userAuthData)
|
||||
if rf, ok := ret.Get(0).(func(string, string, string, string) *model.AppError); ok {
|
||||
r0 = rf(userID, userAuthService, userAuthData, email)
|
||||
} else {
|
||||
if ret.Get(0) != nil {
|
||||
r0 = ret.Get(0).(*model.AppError)
|
||||
|
||||
Ссылка в новой задаче
Block a user