खुला हुआ बंद किया हुआ

No webpage was found for email-confirmation #3351


User avatar
0
agilmore बनाया था

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 उत्तर (ओं)
  • User Avatar
    0
    liangshiwei बनाया था
    सहायता दल 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 बनाया था

    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 बनाया था
    सहायता दल 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 v8.2.0-preview Updated on मार्च 25, 2024, 15:11