@page @model TwoFactorAuthenticationModel @{ ViewData["Title"] = "Two-factor authentication (2FA)"; ViewData["ActivePage"] = ManageNavPages.TwoFactorAuthentication; }

@ViewData["Title"]

@if (Model.Is2faEnabled) { if (Model.RecoveryCodesLeft == 0) {
You have no recovery codes left.

You must generate a new set of recovery codes before you can log in with a recovery code.

} else if (Model.RecoveryCodesLeft == 1) {
You have 1 recovery code left.

You can generate a new set of recovery codes.

} else if (Model.RecoveryCodesLeft <= 3) {
You have @Model.RecoveryCodesLeft recovery codes left.

You should generate a new set of recovery codes.

} if (Model.IsMachineRemembered) {
} Disable 2FA Reset recovery codes }
Authenticator app
@if (!Model.HasAuthenticator) { Add authenticator app } else { Setup authenticator app Reset authenticator app } @section Scripts { }