From 61b27590d70d0e2c443668be51d3b5f53a98f4f3 Mon Sep 17 00:00:00 2001
From: esantangelo <enzo020895@gmail.com>
Date: Wed, 28 Oct 2020 21:44:17 -0300
Subject: [PATCH] commit

---
 Tsi1.Api/Tsi1.Api/SignalR/ChatHub.cs | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Tsi1.Api/Tsi1.Api/SignalR/ChatHub.cs b/Tsi1.Api/Tsi1.Api/SignalR/ChatHub.cs
index 18897e2..94a4163 100644
--- a/Tsi1.Api/Tsi1.Api/SignalR/ChatHub.cs
+++ b/Tsi1.Api/Tsi1.Api/SignalR/ChatHub.cs
@@ -1,4 +1,5 @@
 using AutoMapper;
+using Microsoft.AspNetCore.Authorization;
 using Microsoft.AspNetCore.Http;
 using Microsoft.AspNetCore.SignalR;
 using Microsoft.EntityFrameworkCore;
@@ -14,6 +15,7 @@ using Tsi1.DataLayer.Entities;
 
 namespace Tsi1.Api.SignalR
 {
+    [Authorize]
     public class ChatHub : Hub
     {
         private readonly IMapper _mapper;
@@ -29,7 +31,7 @@ namespace Tsi1.Api.SignalR
             _presenceHub = presenceHub;
             _mapper = mapper;
             _messageService = messageService;
-            _chatService = chatService
+            _chatService = chatService;
 
         }
 
-- 
GitLab