21 lines
556 B
C#
21 lines
556 B
C#
using Microsoft.AspNetCore.Mvc;
|
|
using Microsoft.AspNetCore.Mvc.RazorPages;
|
|
|
|
namespace EonaCat.LogStack.Status.Pages.Admin;
|
|
|
|
public class IngestModel : PageModel
|
|
{
|
|
// This file is part of the EonaCat project(s) which is released under the Apache License.
|
|
// See the LICENSE file or go to https://EonaCat.com/License for full license details.
|
|
|
|
public IActionResult OnGet()
|
|
{
|
|
if (HttpContext.Session.GetString("IsAdmin") != "true")
|
|
{
|
|
return RedirectToPage("/Admin/Login");
|
|
}
|
|
|
|
return Page();
|
|
}
|
|
}
|