From 6ccb8618f2fe79e61702b0ba0ce48182d9293943 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Fri, 11 Dec 2020 21:25:45 +0200 Subject: Made login require only username and made null roles to user --- API/Controllers/UserController.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'API/Controllers') diff --git a/API/Controllers/UserController.cs b/API/Controllers/UserController.cs index 5b47f1c..922119e 100644 --- a/API/Controllers/UserController.cs +++ b/API/Controllers/UserController.cs @@ -29,7 +29,6 @@ namespace API.Controllers return await this._service.LoginUser(userDTO); } - //Create [AllowAnonymous] [HttpPost] @@ -40,7 +39,7 @@ namespace API.Controllers //Read [HttpGet] - [Authorize(Roles = "Admin")] + [Authorize(Roles = Data.Models.Classes.Roles.Admin)] public async Task GetById(int id) { return await this._service.GetUserById(id); -- cgit v1.2.3