@model TwoFactorAuthenticationViewModel @{ ViewData.SetActivePageAndTitle(ManageNavPages.TwoFactorAuthentication, "Two-factor authentication"); } @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 only have 1 recovery code left.

You can generate a new set of recovery codes.

} else if(Model.RecoveryCodesLeft <= 3) {

You only have @Model.RecoveryCodesLeft recovery codes left.

You should generate a new set of recovery codes.

} }
@if (Model.Is2faEnabled) {
Disable 2FA

Disable two-factor authentication. Re-enabling will not require you to reconfigure your Authenticator app.

Reset recovery codes

Regenerate your two-factor recovery codes.

Configure Authenticator app

Display the key or QR code to configure an authenticator app with your current setup.

Reset Authenticator app

Invalidates the current authenticator configuration. Useful if you believe your authenticator settings were compromised.

} else {
Enable 2FA

Enable two-factor authentication using TOTP with apps such as Google Authenticator.

}
@section Scripts { @await Html.PartialAsync("_ValidationScriptsPartial") }