CodeLiturgy.Dashboard/CodeLiturgy.Views/Controllers/EnvironmentsController.cs

37 lines
811 B
C#
Raw Normal View History

2022-11-18 03:15:53 +03:00
using CodeLiturgy.Data.Auth.Context.Users;
2022-11-17 00:17:44 +03:00
using CodeLiturgy.Views.Utils;
using Duende.IdentityServer.Extensions;
using Microsoft.AspNetCore.Mvc;
namespace CodeLiturgy.Views.Controllers;
public class EnvironmentsController : LoggedInUserController
2022-11-17 00:17:44 +03:00
{
public EnvironmentsController(
2022-11-22 18:05:35 +03:00
ApplicationUserManager userManager,
ILogger<LoggedInUserController> logger)
2022-11-22 18:05:35 +03:00
: base(userManager, logger) { }
2022-11-17 00:17:44 +03:00
public override void OnInitialization()
{
base.OnInitialization();
SetHeaderMenu(new List<Url>()
{
});
}
public async Task<IActionResult> Index()
{
await OnEveryAction();
if (!User.IsAuthenticated())
{
return Redirect("/auth/login");
}
return View();
}
}