Using the two factor authentification in ASP.NET MVC / Identity, I successfully set up the UserManager.SmsService.
By default, ASP.NET Identity generates a 6 digit long verification token which is sent by SMS. However, our requirement is to have a 4 characters long alphanumeric token instead.
The code is generated with this command:
var code = await UserManager.GenerateChangePhoneNumberTokenAsync(User.Identity.GetUserId(), phoneNumber);
Is there a way to define the format of the generated code?