17 lines
467 B
C#
17 lines
467 B
C#
using Microsoft.AspNetCore.Mvc;
|
|
using Microsoft.AspNetCore.Mvc.RazorPages;
|
|
|
|
namespace EonaCat.LogStack.Status.Pages.Admin;
|
|
|
|
// 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 class LogoutModel : PageModel
|
|
{
|
|
public IActionResult OnGet()
|
|
{
|
|
HttpContext.Session.Clear();
|
|
return RedirectToPage("/Index");
|
|
}
|
|
}
|