15 lines
309 B
C#
15 lines
309 B
C#
|
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();
|
|||
|
}
|
|||
|
}
|