ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,400 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi all;
The ASP.NET Identity library appears to have dropped all use of IdentityUser.PhoneNumber. Is it still used somewhere? Or does it remain solely so it doesn't break any existing apps that use the IdentityUser object?
thanks - dave
Hi,@David Thielen,It's still in use, In some scenarios,a confirmed phonenumber is required for users to login
For this requirement,we could configure Identity as below:
builder.Services.AddDefaultIdentity<AppUser>
(
options =>
{
options.SignIn.RequireConfirmedPhoneNumber = true;
........
}
)