Fix issue 25390 (#25403)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
10026972b5
Коммит
48bf4e9bd8
@@ -1109,7 +1109,7 @@ func (a *App) PatchUser(c request.CTX, userID string, patch *model.UserPatch, as
|
||||
return updatedUser, nil
|
||||
}
|
||||
|
||||
func (a *App) UpdateUserAuth(userID string, userAuth *model.UserAuth) (*model.UserAuth, *model.AppError) {
|
||||
func (a *App) UpdateUserAuth(c request.CTX, userID string, userAuth *model.UserAuth) (*model.UserAuth, *model.AppError) {
|
||||
if _, err := a.Srv().Store().User().UpdateAuthData(userID, userAuth.AuthService, userAuth.AuthData, "", false); err != nil {
|
||||
var invErr *store.ErrInvalidInput
|
||||
switch {
|
||||
@@ -1120,6 +1120,8 @@ func (a *App) UpdateUserAuth(userID string, userAuth *model.UserAuth) (*model.Us
|
||||
}
|
||||
}
|
||||
|
||||
a.InvalidateCacheForUser(userID)
|
||||
|
||||
return userAuth, nil
|
||||
}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user