Authinator/Pages/Index.cshtml.cs

15 lines
309 B
C#
Raw Normal View History

2023-06-01 06:14:20 +02:00
using Authinator.Backend.Utils;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
namespace Authinator.Pages;
public class IndexModel : PageModel {
public IActionResult OnGet() {
if (Globals.NoActiveAdminUser)
return Redirect("/FinishRegistration");
return Page();
}
}