CodeLiturgy.Dashboard/CodeLiturgy.Views/Controllers/EnvironmentsPageController.cs

37 lines
803 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 EnvironmentsPageController : UserController
{
2022-11-22 18:05:35 +03:00
public EnvironmentsPageController(
ApplicationUserManager userManager,
ILogger<UserController> logger)
: 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();
}
}