Starts in:
1 DAY
12 HRS
53 MIN
40 SEC
Starts in:
1 D
12 H
53 M
40 S
Open Closed

No webpage was found for email-confirmation #3351


User avatar
0
agilmore created

Choose to verify your email address on "Personal Info" screen.

Click on "Confirm my email address" in "Email Confirmation" email.

No webpage was found for the web address: https://localhost:44322/account/email-confirmation?userId=1d5964fd-4cbb-11ae-9f7e-39fdf8e2bf0c&__tenant=&confirmationToken=CfDJ8GiBbaXh295E....

appsettings.json in HttpApi.Host project:

"App": { "SelfUrl": "https://localhost:44322", "AngularUrl": "http://localhost:4200", "CorsOrigins": "https://*.App.com,https://localhost:44307", "RedirectAllowedUrls": "http://localhost:4200,https://localhost:44307" },

ConfigureUrls in AppHttpApiHostModule:

    private void ConfigureUrls(IConfiguration configuration)
    {
        Configure<AppUrlOptions>(options =>
        {
            options.Applications["MVC"].RootUrl = configuration["App:SelfUrl"];
            options.Applications["MVC"].Urls[AccountUrlNames.PasswordReset] = "account/reset-password";
            options.Applications["MVC"].Urls[AccountUrlNames.EmailConfirmation] = "account/email-confirmation";
            options.Applications["Angular"].RootUrl = configuration["App:AngularUrl"];
            options.Applications["Angular"].Urls[AccountUrlNames.PasswordReset] = "account/reset-password";
            options.Applications["Angular"].Urls[AccountUrlNames.EmailConfirmation] = "account/email-confirmation";
            options.RedirectAllowedUrls.AddRange(configuration["App:RedirectAllowedUrls"].Split(','));
        });
    }

I added

            options.Applications["MVC"].Urls[AccountUrlNames.PasswordReset] = "account/reset-password";
            options.Applications["MVC"].Urls[AccountUrlNames.EmailConfirmation] = "account/email-confirmation";

3 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    I added options.Applications["MVC"].Urls[AccountUrlNames.PasswordReset] = "account/reset-password"; options.Applications["MVC"].Urls[AccountUrlNames.EmailConfirmation] = "account/email-confirmation"

    Hi,

    You don't need to do it, just remove those, and it should work.

  • User Avatar
    0
    agilmore created

    Ok.

    That fixed this issue:

    But then, after being redirected to the login screen and signing in, I get redirected to the swagger page:

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    We had this problem before, it was fixed in the next version, can you upgrade to 5.3.1 and try again?

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06