4 references to Enable
Microsoft.AspNetCore.Identity (4)
Data\TwoFactorRequest.cs (1)
20
/// The two-factor code derived from the <see cref="TwoFactorResponse.SharedKey"/>. This is only required if <see cref="
Enable
"/> is set to <see langword="true"/>.
IdentityApiEndpointRouteBuilderExtensions.cs (3)
270
if (tfaRequest.
Enable
== true)
292
else if (tfaRequest.
Enable
== false || tfaRequest.ResetSharedKey)
303
if (tfaRequest.ResetRecoveryCodes || (tfaRequest.
Enable
== true && await userManager.CountRecoveryCodesAsync(user) == 0))