GenerateRecoveryCodes.cshtml 988 B

123456789101112131415161718192021222324252627
  1. @page
  2. @model GenerateRecoveryCodesModel
  3. @{
  4. ViewData["Title"] = "Generate two-factor authentication (2FA) recovery codes";
  5. ViewData["ActivePage"] = ManageNavPages.TwoFactorAuthentication;
  6. }
  7. <partial name="_StatusMessage" for="StatusMessage" />
  8. <h3>@ViewData["Title"]</h3>
  9. <div class="alert alert-warning" role="alert">
  10. <p>
  11. <span class="glyphicon glyphicon-warning-sign"></span>
  12. <strong>Put these codes in a safe place.</strong>
  13. </p>
  14. <p>
  15. If you lose your device and don't have the recovery codes you will lose access to your account.
  16. </p>
  17. <p>
  18. Generating new recovery codes does not change the keys used in authenticator apps. If you wish to change the key
  19. used in an authenticator app you should <a asp-page="./ResetAuthenticator">reset your authenticator keys.</a>
  20. </p>
  21. </div>
  22. <div>
  23. <form method="post">
  24. <button class="btn btn-danger" type="submit">Generate Recovery Codes</button>
  25. </form>
  26. </div>