You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
764 B
31 lines
764 B
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
using Microsoft.AspNetCore.Identity;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using Microsoft.AspNetCore.Mvc.RazorPages;
|
|
using Microsoft.Extensions.Logging;
|
|
|
|
namespace BlazorApp.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();
|
|
}
|
|
}
|
|
}
|