Open Closed

Two questions about Register successfully #1409


User avatar
0
abpVAndy created
  • ABP Framework version: v4.3.1
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:

I have two question about the register.

Question 1, Is it the default by ABP Vnext? Confirm email/phone after register successfully. I see the default setting is here

  1. I use the abp suite to creat application template

  2. Run angular client and public client, go to login, all login successfully and logout.

  3. go to login page again, click the "Register" button to register new user

  4. it was register successfully, but it ask me to confirm email/phone

    And here is the link after register successfully:

https://localhost:44396/Account/ConfirmUser?returnUrl=%2Fconnect%2Fauthorize%2Fcallback%3Fresponse_type%3Dcode%26client_id%3Dlogintestregister_App%26state%3DfmktVXFTTXBXUlZLX2tFcGhNMUhVeWFfdXZDQXhXcWNDamZCWU9lX2hkYnpE%26redirect_uri%3Dhttp%253A%252F%252Flocalhost%253A4200%26scope%3Doffline_access%2520openid%2520profile%2520role%2520email%2520phone%2520logintestregister%26code_challenge%3Do1RYIRbclZDZwJq-ylzZ42vu4yPav5Kxu180bF0ORcc%26code_challenge_method%3DS256%26nonce%3DfmktVXFTTXBXUlZLX2tFcGhNMUhVeWFfdXZDQXhXcWNDamZCWU9lX2hkYnpE

Question 2: Could I remove the confirm option after customer register successfully? How could I do for it? Or do we have any other option for the register successfully? Other pages? I do not want only stay the confirm page after register.

Thx


5 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Is it the default by ABP Vnext? Confirm email/phone after register successfully.

    Register.cshtml.cs

    if (await SettingProvider.IsTrueAsync(IdentitySettingNames.SignIn.RequireConfirmedEmail) && !user.EmailConfirmed ||
    await SettingProvider.IsTrueAsync(IdentitySettingNames.SignIn.RequireConfirmedPhoneNumber) && !user.PhoneNumberConfirmed)
    {
        return RedirectToPage("./ConfirmUser");
    }
    

    We have a fix about ConfirmUser in 4.3.2 that will be release today or tomorrow. You can upgrade it.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Question 2: Could I remove the confirm option after customer register successfully? How could I do for it?

    You can override the RegisterModel of account pro module.

  • User Avatar
    0
    abpVAndy created

    Thx, I will try this shortly later.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    It's should be working.

  • User Avatar
    0
    ServiceBot created
    Support Team Automatic process manager

    This question has been automatically marked as stale because it has not had recent activity.

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11