I need to disable the email confirmation when a user creates an account in MVC asp.net identity 2.0
ASP.NET Identity is Microsoft's user management library for ASP.NET. It includes functionality such as password hashing, password validation, user storage, and claims management. It usually also comes with some basic authentication, bringing its own cookies and multi-factor authentication to the party.
Use the following when configuring aspnet identity in the startup
In ConfigureServices()
services.AddIdentity<ApplicationUser, IdentityRole>(config =>
{
config.SignIn.RequireConfirmedEmail = false;
})
Aspnet identity will then not check the EmailConfirmed flag when validating credentials during sign-in.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With