From 0c4d13caed53b2702eef41461d0c8a4b25df48f6 Mon Sep 17 00:00:00 2001 From: Sergey Chebotar Date: Mon, 6 Mar 2023 07:41:35 +0300 Subject: Base authorization/authentification --- Controllers/BundleController.cs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Controllers/BundleController.cs') diff --git a/Controllers/BundleController.cs b/Controllers/BundleController.cs index 9e5c2d9..b1d61fd 100644 --- a/Controllers/BundleController.cs +++ b/Controllers/BundleController.cs @@ -1,10 +1,12 @@ using System.Data; +using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using MyDarling.Models; namespace MyDarling.Controllers { + [Authorize] public class BundleController : Controller { private DataContext context; -- cgit v1.2.3