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;
|
|
|
|
|
|
|
|
|
2023-11-04 18:35:19 +03:00
|
|
|
public class EnvironmentsController : LoggedInUserController
|
2022-11-17 00:17:44 +03:00
|
|
|
{
|
2023-11-04 18:35:19 +03:00
|
|
|
public EnvironmentsController(
|
2022-11-22 18:05:35 +03:00
|
|
|
ApplicationUserManager userManager,
|
2023-11-04 18:35:19 +03:00
|
|
|
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();
|
|
|
|
}
|
|
|
|
}
|