Base solution for your next web application
Open Closed

SMS Activation #1916


User avatar
0
ianmark89 created

Sorry for duplicating post. I've posted in wrong forum. #1914

I found IsPhoneNumberConfirmed column in database. Does the current system support phone verification? I want to let user register by phone, can you please give me some idea about this function?


3 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    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.

  • User Avatar
    0
    ianmark89 created

    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?

  • User Avatar
    0
    ismcagdas created
    Support Team

    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.