user service: add oauth and profile images (#17784)
* users: add cache to service * reflect review comments * add oauth * move profile picture genaration * reflect review comments * move default bot image to users package * add missing wraps and apply suggestions * add comment for app.GetSession
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
79d4e9e9a9
Коммит
f69b28610a
@@ -88,6 +88,7 @@ func GetMockStoreForSetupFunctions() *mocks.Store {
|
||||
roleStore.On("GetAll").Return([]*model.Role{}, nil)
|
||||
|
||||
sessionStore := mocks.SessionStore{}
|
||||
oAuthStore := mocks.OAuthStore{}
|
||||
|
||||
mockStore.On("System").Return(&systemStore)
|
||||
mockStore.On("User").Return(&userStore)
|
||||
@@ -101,5 +102,6 @@ func GetMockStoreForSetupFunctions() *mocks.Store {
|
||||
mockStore.On("DropAllTables").Return(nil)
|
||||
mockStore.On("MarkSystemRanUnitTests").Return(nil)
|
||||
mockStore.On("Session").Return(&sessionStore)
|
||||
mockStore.On("OAuth").Return(&oAuthStore)
|
||||
return &mockStore
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user