using System.Diagnostics; using System.Web.Mvc; using BlueWest.Data.Auth.Context.Users; using Microsoft.AspNetCore.Mvc; using CodeLiturgy.Views.Models; using CodeLiturgy.Views.Utils; using Controller = Microsoft.AspNetCore.Mvc.Controller; namespace CodeLiturgy.Views.Controllers; public class AccountController : UserController { private readonly ILogger _logger; public AccountController(ApplicationUserManager userManager, ILogger logger) : base(userManager, logger) { _userManager = userManager; _logger = logger; } public async Task Index() { await OnEveryAction(); var user = await GetLoggedInUser(); return View(user); } public override void OnInitialization() { SetFooterMenu(LayoutCache.AccountRouteRecord.ChildrenToUrl()); } public async Task Change() { await OnEveryAction(); return View("ChangePassword"); } [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)] public async Task Error() { return View(new ErrorViewModel {RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier}); } }