MM-17117: Updates einterface for FirstLoginSync. (#11737)

This commit is contained in:
Martin Kraft 2019-08-02 10:57:35 -04:00 committed by GitHub
parent 2fa63b10ec
commit c74f685c76
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View file

@ -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
}

View file

@ -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)