@model TwoFactorAuthenticationViewModel @{ ViewData.SetActivePageAndTitle(ManageNavPages.TwoFactorAuthentication, "Two-factor authentication"); }

@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.

} Disable 2FA Reset recovery codes }
Authenticator app
@if(!Model.HasAuthenticator) { Add authenticator app } else { Configure authenticator app Reset authenticator key } @section Scripts { @await Html.PartialAsync("_ValidationScriptsPartial") }