mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
MM-17117: Updates einterface for FirstLoginSync. (#11737)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user