Two-Factor Asp.core

var authenticatorCode = command.Code.Replace(" ", string.Empty).Replace("-", string.Empty);
var twoFactor = await _userManager.VerifyTwoFactorTokenAsync(user, _userManager.Options.Tokens.AuthenticatorTokenProvider, authenticatorCode);

https://chsakell.com/2019/08/18/asp-net-core-identity-series-two-factor-...
https://stackoverflow.com/questions/41084411/whats-the-difference-betwee...
https://blog.elmah.io/how-to-implement-two-factor-authentication-with-as...

Kategoria: