MM-68983: Tighten OAuth token issuance and cleanup on user deactivation (#36743) (#36853)

Automatic Merge
Этот коммит содержится в:
Maria A Nunez
2026-06-03 02:54:16 -04:00
коммит произвёл GitHub
родитель d00e9d48d3
Коммит 5563e09593
4 изменённых файлов: 183 добавлений и 0 удалений

Просмотреть файл

@@ -1037,6 +1037,10 @@ func (a *App) userDeactivated(c request.CTX, userID string) *model.AppError {
c.Logger().Warn("unable to remove auth data by user id", mlog.Err(nErr))
}
if nErr := a.Srv().Store().OAuth().PermanentDeleteAuthDataByUser(userID); nErr != nil {
c.Logger().Warn("unable to remove oauth access data by user id", mlog.Err(nErr))
}
return nil
}