34 lines
776 B
C#
34 lines
776 B
C#
using CodeLiturgy.Data.Auth.Context.Users;
|
|
using CodeLiturgy.Views.Utils;
|
|
using Duende.IdentityServer.Extensions;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace CodeLiturgy.Views.Controllers;
|
|
|
|
|
|
public class EnvironmentsPageController : UserController
|
|
{
|
|
public EnvironmentsPageController(ApplicationUserManager userManager, ILogger<UserController> logger) : base(userManager, logger) { }
|
|
|
|
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();
|
|
}
|
|
} |