34 lines
773 B
C#
34 lines
773 B
C#
|
using BlueWest.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();
|
||
|
}
|
||
|
}
|