Open Closed

email confirmation link error #7608


User avatar
0
Ihotu created
  • ABP Framework version: v7.4.2
  • UI Type: Angular
  • Database System: EF Core (PostgreSQL)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Steps to reproduce the issue:

when creating a user from the angular application, it sends me a confirmation email but the link is broken.

http://localhost:4200/Account/EmailConfirmation?userId=3a141a69-0087-ae0c-065b-74a17f4f73d8&__tenant=&confirmationToken=CfDJ8L74zY%2Fd%2BP1Ns2nE1NFiLTmB3RR33qpQ9OVY4OT%2FcSTy6ghSnJiyf3bh2ZU8iBPOsS2grwRJJVx0hcmflBL1U9%2FY1f6bhP9ozgNwT8ollKMyFjzeeCscTLr0%2BROeCRvixH4becdtnhBRbG54GF%2FH8mCzuVBbO0t5HbyW5Q5I%2BnlTKWxD%2FQGyU4Q23UHFtEmGpDJNIU3T03Ixx7XOL%2BoVVM%2BsW0Mxr5PYu0eP3GvBLwKTuxeW1SH0XYW6kdZJjD0vxg%3D%3D

when creating a user from the auth endpoint, the link in the confirmation email is valid.

http://localhost:4200/account/email-confirmation?userId=3a141a5d-e57d-7849-a528-798918647f2b&__tenant=&confirmationToken=CfDJ8L74zY%2Fd%2BP1Ns2nE1NFiLTmQ0Q%2FpU%2BIwj6RFrOzuZ76XF7djXJ5LCccdo8xLWkm8Z7LW8tpaAwunKT8JpF13EWb2ER4lsYRt2g41A7E9T5HffWvyEDX4%2BOMIebSziJB4sgTWqGusl9%2B%2FeqCHQgFVCK3%2BlMuyEjiP1sFIfDvprozVMflki8IHjN%2F68QSggtjJ7N8srHflsrF68DhiN8uitgnrlJguOsBEYIJJaea%2F%2Bit7ng8UB%2FKioRPimjFGxD4z5Q%3D%3D

the difference seems to be the root url. how do i configure the root url for the angular to point to the valid root endpoint


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

    Hi,

    you need to configure the angular URL

    Configure<AppUrlOptions>(options =>
    {
        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";
    });
    
Made with ❤️ on ABP v9.1.0-preview. Updated on December 13, 2024, 06:09