mirror of
https://github.com/mattermost/mattermost.git
synced 2026-02-19 02:28:08 -05:00
MM-17117: Updates einterface for FirstLoginSync. (#11737)
This commit is contained in:
parent
2fa63b10ec
commit
c74f685c76
2 changed files with 6 additions and 6 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue