mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
25 lines
613 B
C#
25 lines
613 B
C#
using Microsoft.AspNetCore.Mvc;
|
|
using Microsoft.AspNetCore.Mvc.RazorPages;
|
|
|
|
namespace Marechai.Areas.Identity.Pages.Account.Manage
|
|
{
|
|
public class ShowRecoveryCodesModel : PageModel
|
|
{
|
|
[TempData]
|
|
public string[] RecoveryCodes { get; set; }
|
|
|
|
[TempData]
|
|
public string StatusMessage { get; set; }
|
|
|
|
public IActionResult OnGet()
|
|
{
|
|
if(RecoveryCodes == null ||
|
|
RecoveryCodes.Length == 0)
|
|
{
|
|
return RedirectToPage("./TwoFactorAuthentication");
|
|
}
|
|
|
|
return Page();
|
|
}
|
|
}
|
|
} |