3 Answer(s)
-
0
Hi,
You need to implement IIdentityMessageService for phone verification. There is a simple implementation in the project which only logs given information <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero/blob/8a23155138d3178d5529d4389420669014ec1248/src/MyCompanyName.AbpZeroTemplate.Core/Identity/IdentitySmsMessageService.cs">https://github.com/aspnetzero/aspnet-ze ... Service.cs</a>.
After implementing this for phone verification use it in UserManager class instead of IdentitySmsMessageService.
-
0
Hi,
Thanks for your supporting. I concern about IdentityMessageService, because this class is using for two factor login, but I want to verify the phone number to make sure that user has entered correct number. If I IIdentityMessageService, where will the code be stored?
-
0
Hi,
Sorry, I misunderstand you. But, you can follow a similar path with two factor auth.
Ask for phone number in register page, send a validation code to user, redirect user to code verification screen. In the mean time you can store code in cache, we do it for two factor verification code. You can check that code in AspNet Zero project.